[jruby-joni] 180/194: inline warnings
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:39 UTC 2018
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository jruby-joni.
commit 11ff950c4f54265c562ba3d9d15724801432dece
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Wed Jan 24 20:00:51 2018 +0100
inline warnings
---
src/org/joni/Lexer.java | 8 ++++----
src/org/joni/Warnings.java | 26 --------------------------
2 files changed, 4 insertions(+), 30 deletions(-)
diff --git a/src/org/joni/Lexer.java b/src/org/joni/Lexer.java
index 5e5e203..35869ad 100644
--- a/src/org/joni/Lexer.java
+++ b/src/org/joni/Lexer.java
@@ -542,7 +542,7 @@ class Lexer extends ScannerSupport {
}
}
} else {
- syntaxWarn(Warnings.INVALID_UNICODE_PROPERTY, (char)c);
+ syntaxWarn("invalid Unicode Property \\<%n>", (char)c);
}
}
@@ -860,7 +860,7 @@ class Lexer extends ScannerSupport {
fetchNamedBackrefToken();
} else {
unfetch();
- syntaxWarn(Warnings.INVALID_BACKREFERENCE);
+ syntaxWarn("invalid back reference");
}
}
}
@@ -907,7 +907,7 @@ class Lexer extends ScannerSupport {
token.setCallGNum(gNum);
token.setCallRel(rel);
} else {
- syntaxWarn(Warnings.INVALID_SUBEXP_CALL);
+ syntaxWarn("invalid subexp call");
unfetch();
}
}
@@ -987,7 +987,7 @@ class Lexer extends ScannerSupport {
}
}
} else {
- syntaxWarn(Warnings.INVALID_UNICODE_PROPERTY, (char)c);
+ syntaxWarn("invalid Unicode Property \\<%n>", (char)c);
}
}
diff --git a/src/org/joni/Warnings.java b/src/org/joni/Warnings.java
deleted file mode 100644
index 80e1519..0000000
--- a/src/org/joni/Warnings.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
- * this software and associated documentation files (the "Software"), to deal in
- * the Software without restriction, including without limitation the rights to
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
- * of the Software, and to permit persons to whom the Software is furnished to do
- * so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-package org.joni;
-
-public interface Warnings {
- final String INVALID_BACKREFERENCE = "invalid back reference";
- final String INVALID_SUBEXP_CALL = "invalid subexp call";
- final String INVALID_UNICODE_PROPERTY = "invalid Unicode Property \\<%n>";
-}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git
More information about the pkg-java-commits
mailing list