23
23
import javax .servlet .http .HttpServletRequest ;
24
24
import javax .servlet .http .HttpServletResponse ;
25
25
26
- import org .apache .commons .lang3 .StringUtils ;
27
26
import org .eclipse .jdt .annotation .NonNullByDefault ;
28
27
import org .eclipse .jdt .annotation .Nullable ;
29
28
import org .openhab .core .events .Event ;
30
29
import org .openhab .core .events .EventFilter ;
31
30
import org .openhab .io .neeo .NeeoService ;
32
31
import org .openhab .io .neeo .internal .servletservices .ServletService ;
32
+ import org .openhab .io .neeo .internal .util .StringUtils ;
33
33
import org .slf4j .Logger ;
34
34
import org .slf4j .LoggerFactory ;
35
35
@@ -115,7 +115,7 @@ protected void doGet(@Nullable HttpServletRequest req, @Nullable HttpServletResp
115
115
return ;
116
116
}
117
117
118
- final String [] paths = StringUtils .split (pathInfo .startsWith ("/" ) ? pathInfo .substring (1 ) : pathInfo , '/' );
118
+ final String [] paths = StringUtils .split (pathInfo .startsWith ("/" ) ? pathInfo .substring (1 ) : pathInfo , "/" );
119
119
final ServletService service = getService (paths );
120
120
121
121
if (service == null ) {
@@ -142,7 +142,7 @@ protected void doPost(@Nullable HttpServletRequest req, @Nullable HttpServletRes
142
142
}
143
143
144
144
final String pathInfo = NeeoUtil .decodeURIComponent (req .getPathInfo ());
145
- final String [] paths = StringUtils .split (pathInfo .startsWith ("/" ) ? pathInfo .substring (1 ) : pathInfo , '/' );
145
+ final String [] paths = StringUtils .split (pathInfo .startsWith ("/" ) ? pathInfo .substring (1 ) : pathInfo , "/" );
146
146
final ServletService service = getService (paths );
147
147
148
148
if (service == null ) {
0 commit comments