Skip to content

Commit fe53809

Browse files
add trim (with null handling) to StringTools
1 parent 235eb0b commit fe53809

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sqldev/src/main/java/org/utplsql/sqldev/model/StringTools.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,11 @@ public static boolean isNotBlank(String value) {
113113
return value != null && !value.trim().isEmpty();
114114
}
115115

116+
public static String trim(String value) {
117+
if (value == null) {
118+
return null;
119+
}
120+
return value.trim();
121+
}
122+
116123
}

0 commit comments

Comments
 (0)