The field StringPool.SLASH is deprecatedThe field StringPool.SLASH is deprecatedhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1205139522024-03-28T22:48:59Z2024-03-28T22:48:59ZRE: The field StringPool.SLASH is deprecatedEric Dhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1205227592020-12-30T17:22:20Z2020-12-30T17:22:20Z<p>May be it is because StringPool is now in the package com.liferay.petra.string.StringPool.</p>
<p>The dependency is now : </p>
<p> <dependency><br />
<groupId>com.liferay</groupId><br />
<artifactId>com.liferay.petra.string</artifactId><br />
<scope>provided</scope><br /> </dependency></p>
<p>The 6.2 class com.liferay.portal.kernel.util.StringPool is deprecated.</p>
<p>When Liferay move classes from the kernel to a module, the older
classes are first deprecated and after they are deleted.</p>Eric D2020-12-30T17:22:20ZRE: The field StringPool.SLASH is deprecatedRoc Vidalhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1205194472020-12-29T08:33:34Z2020-12-29T08:32:21Z<p>Ok. My version is liferay-commerce-2.0.5</p>
<p> </p>
<p>Thanks for your response.</p>Roc Vidal2020-12-29T08:32:21ZRE: The field StringPool.SLASH is deprecatedOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1205123862020-12-29T08:30:30Z2020-12-23T10:51:13Z<p>1. this is a deprecation warning, not an error. You can just leave it
as is, or ignore it.</p>
<p>2. Which version are you talking about? I've checked the DXP 7.3
source code, and don't see deprecation there</p>
<p>3. What I see in that code is</p>
<pre><code class="language-java">public static final String SLASH = FORWARD_SLASH;</code></pre>
<p> - so you might want to be more explicit than "slash" and
explicitly reference "forward-slash" as opposed to backslash</p>
<p>Of course, you can always test for "/" occurrences.</p>Olaf Kock2020-12-23T10:51:13ZThe field StringPool.SLASH is deprecatedRoc Vidalhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1205139512020-12-23T10:47:51Z2020-12-23T08:42:30Z<p>Hi, I have imported a project into Liferay developer studio and
appear some java errors like this:</p>
<p> </p>
<p>
<strong>The field StringPool.SLASH is deprecated</strong></p>
<p>on this code:</p>
<p>for(String val : orderValue.split("###")){<br />
if(val.contains(StringPool.SLASH)){<br />
// parent category<br /> String category =
val.substring(0 , val.indexOf(StringPool.SLASH));<br />
<br /> // order per catalog<br />