This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new e33db24 Trivial refactoring: Remove redundant condition(`byte >=
-128` is always true)
e33db24 is described below
commit e33db248e1b9a059b2fa1e85a25bedf332dbec6f
Author: Daniel Sun <[email protected]>
AuthorDate: Sat Apr 11 20:29:33 2020 +0800
Trivial refactoring: Remove redundant condition(`byte >= -128` is always
true)
---
src/main/java/groovy/util/CharsetToolkit.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/groovy/util/CharsetToolkit.java
b/src/main/java/groovy/util/CharsetToolkit.java
index 89d977e..6e2d135 100644
--- a/src/main/java/groovy/util/CharsetToolkit.java
+++ b/src/main/java/groovy/util/CharsetToolkit.java
@@ -277,7 +277,7 @@ public class CharsetToolkit {
* @return true if it's a continuation char.
*/
private static boolean isContinuationChar(byte b) {
- return -128 <= b && b <= -65;
+ return b <= -65;
}
/**