aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/ddf
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2020-03-29 14:39:11 +0000
committerAndreas Beeker <kiwiwings@apache.org>2020-03-29 14:39:11 +0000
commitc01273ad02478412e8b92db797830f2a9f70f05b (patch)
treecaf9261b54f4858af5ca7086c5f68a71bd08e105 /src/java/org/apache/poi/ddf
parenta68b67a70bcb57131add0e602e9521b2112c1ed4 (diff)
downloadpoi-c01273ad02478412e8b92db797830f2a9f70f05b.tar.gz
poi-c01273ad02478412e8b92db797830f2a9f70f05b.zip
Sonar Fixes
- use String.replace instead of String.replaceAll for literal values - use constants from base class - deprecated various references to constants of org.apache.poi.ss.usermodel.FontFormatting - to be replaced by o.a.p.s.u.Font in POI 5.0.0 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875859 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/ddf')
-rw-r--r--src/java/org/apache/poi/ddf/EscherProperties.java2
-rw-r--r--src/java/org/apache/poi/ddf/EscherPropertyTypes.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/ddf/EscherProperties.java b/src/java/org/apache/poi/ddf/EscherProperties.java
index 415519b453..7cebea603b 100644
--- a/src/java/org/apache/poi/ddf/EscherProperties.java
+++ b/src/java/org/apache/poi/ddf/EscherProperties.java
@@ -24,7 +24,7 @@ import org.apache.poi.util.Removal;
*
* @deprecated use {@link EscherPropertyTypes} enum instead
*/
-@SuppressWarnings({"unused"})
+@SuppressWarnings({"unused","java:S115"})
@Deprecated
@Removal(version = "5.0.0")
public interface EscherProperties {
diff --git a/src/java/org/apache/poi/ddf/EscherPropertyTypes.java b/src/java/org/apache/poi/ddf/EscherPropertyTypes.java
index cd5b25a7d4..a48972faf3 100644
--- a/src/java/org/apache/poi/ddf/EscherPropertyTypes.java
+++ b/src/java/org/apache/poi/ddf/EscherPropertyTypes.java
@@ -25,6 +25,7 @@ import java.util.stream.Stream;
/**
* Provides a list of all known escher properties including the description and type.
*/
+@SuppressWarnings({"java:S115"})
public enum EscherPropertyTypes {
TRANSFORM__ROTATION(0x0004, "transform.rotation"),
PROTECTION__LOCKROTATION(0x0077, "protection.lockrotation"),