From 1f6417624639de346ffa74351d30b58d30f9e80b Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Tue, 9 Dec 2014 10:17:27 +0000 Subject: Mavenized and fixed formatting to match jacobe --- src/org/jetbrains/java/decompiler/util/Util.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/org/jetbrains/java/decompiler/util/Util.java (limited to 'src/org/jetbrains/java/decompiler/util') 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(""); + } +} -- cgit v1.2.3