You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/11/27 13:37:34 UTC
(commons-imaging) 06/11: A class which only has private constructors should be final
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git
commit 57d739d7e61b42c0499888c683d571e7f77446fe
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Nov 27 08:20:48 2023 -0500
A class which only has private constructors should be final
---
src/main/java/org/apache/commons/imaging/formats/png/PhysicalScale.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/imaging/formats/png/PhysicalScale.java b/src/main/java/org/apache/commons/imaging/formats/png/PhysicalScale.java
index b57bbea4..ee4d84dc 100644
--- a/src/main/java/org/apache/commons/imaging/formats/png/PhysicalScale.java
+++ b/src/main/java/org/apache/commons/imaging/formats/png/PhysicalScale.java
@@ -19,7 +19,7 @@ package org.apache.commons.imaging.formats.png;
/**
* Used to specify physical scale when reading or storing image information.
*/
-public class PhysicalScale {
+public final class PhysicalScale {
private static final int METER_UNITS = 1;
private static final int RADIAN_UNITS = 2;
public static final PhysicalScale UNDEFINED = createFromMeters(-1.0, -1.0);