We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e5a9eb commit 3d7c1bfCopy full SHA for 3d7c1bf
triplestore/src/main/java/org/trellisldp/ext/triplestore/TriplestoreUtils.java
@@ -13,7 +13,6 @@
13
*/
14
package org.trellisldp.ext.triplestore;
15
16
-import static java.util.Objects.nonNull;
17
import static org.apache.camel.util.ExchangeHelper.getMandatoryHeader;
18
import static org.trellisldp.camel.ActivityStreamProcessor.ACTIVITY_STREAM_OBJECT_ID;
19
@@ -28,7 +27,7 @@
28
27
final class TriplestoreUtils {
29
30
public static String encode(final String input, final String encoding) {
31
- if (nonNull(input)) {
+ if (input != null) {
32
try {
33
return URLEncoder.encode(input, encoding);
34
} catch (final UnsupportedEncodingException ex) {
0 commit comments