summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-02-18 13:12:53 +0100
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-02-18 13:12:53 +0100
commit2f42fd48418c8b3161bc372e34452c058f2bbd05 (patch)
tree976cf835b909cc88227afbbc3d3f90d138625e53 /pdf-over-gui/src/main/java/at
parent7a3291d2a7d867482ab1c66e001a5f25d92fb876 (diff)
downloadpdf-over-2f42fd48418c8b3161bc372e34452c058f2bbd05.tar.gz
pdf-over-2f42fd48418c8b3161bc372e34452c058f2bbd05.tar.bz2
pdf-over-2f42fd48418c8b3161bc372e34452c058f2bbd05.zip
some warnings cleaned up
Diffstat (limited to 'pdf-over-gui/src/main/java/at')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/osx/CocoaUIEnhancer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/osx/CocoaUIEnhancer.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/osx/CocoaUIEnhancer.java
index a5605557..bd4c3aa6 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/osx/CocoaUIEnhancer.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/osx/CocoaUIEnhancer.java
@@ -298,9 +298,9 @@ public class CocoaUIEnhancer {
private static Object wrapPointer(final long value) {
final Class<?> PTR_CLASS = C.PTR_SIZEOF == 8 ? long.class : int.class;
if (PTR_CLASS == long.class) {
- return new Long(value);
+ return Long.valueOf(value);
}
- return new Integer((int) value);
+ return Integer.valueOf((int) value);
}
private static Object invoke(final Class<?> clazz, final String methodName,