summaryrefslogtreecommitdiffstats
path: root/src/org/jetbrains/java/decompiler/util
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2014-12-09 10:17:27 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2014-12-11 14:50:16 +0000
commit1f6417624639de346ffa74351d30b58d30f9e80b (patch)
tree036118b0c09135e1bc579e0a3a51bc0a3ecd861d /src/org/jetbrains/java/decompiler/util
parentb98e02e557eb7c30d6425ffd9cfa8b7b71b164dc (diff)
downloadfernflower-1f6417624639de346ffa74351d30b58d30f9e80b.tar
fernflower-1f6417624639de346ffa74351d30b58d30f9e80b.tar.gz
fernflower-1f6417624639de346ffa74351d30b58d30f9e80b.tar.lz
fernflower-1f6417624639de346ffa74351d30b58d30f9e80b.tar.xz
fernflower-1f6417624639de346ffa74351d30b58d30f9e80b.zip
Mavenized and fixed formatting to match jacobeformatting
Diffstat (limited to 'src/org/jetbrains/java/decompiler/util')
-rw-r--r--src/org/jetbrains/java/decompiler/util/Util.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/org/jetbrains/java/decompiler/util/Util.java b/src/org/jetbrains/java/decompiler/util/Util.java
new file mode 100644
index 0000000..5ade232
--- /dev/null
+++ b/src/org/jetbrains/java/decompiler/util/Util.java
@@ -0,0 +1,12 @@
+package org.jetbrains.java.decompiler.util;
+
+import java.util.regex.Pattern;
+
+public class Util {
+
+ private final static Pattern RTRIM = Pattern.compile("\\s+$");
+
+ public static String rtrim(String s) {
+ return RTRIM.matcher(s).replaceAll("");
+ }
+}