diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-12-09 10:17:27 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-12-11 14:50:16 +0000 |
commit | 1f6417624639de346ffa74351d30b58d30f9e80b (patch) | |
tree | 036118b0c09135e1bc579e0a3a51bc0a3ecd861d /src/org/jetbrains/java/decompiler/util/Util.java | |
parent | b98e02e557eb7c30d6425ffd9cfa8b7b71b164dc (diff) | |
download | fernflower-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/Util.java')
-rw-r--r-- | src/org/jetbrains/java/decompiler/util/Util.java | 12 |
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(""); + } +} |