pjfanning commented on code in PR #806:
URL: https://github.com/apache/poi/pull/806#discussion_r2083052704


##########
poi/src/main/java/org/apache/poi/hssf/util/HSSFColor.java:
##########
@@ -324,11 +348,22 @@ public short getIndex2() {
      */
 
     public String getHexString() {
-        return (Integer.toHexString(color.getRed()*0x101) + ":" +
-               Integer.toHexString(color.getGreen()*0x101) + ":" +
-               
Integer.toHexString(color.getBlue()*0x101)).toUpperCase(Locale.ROOT);
+        return (Integer.toHexString(getRed()*0x101) + ":" +
+               Integer.toHexString(getGreen()*0x101) + ":" +
+               Integer.toHexString(getBlue()*0x101)).toUpperCase(Locale.ROOT);
     }
 
+    final short getBlue() {

Review Comment:
   would there a be a benefit to making these methods public?
   
   So far, you don't appear to use these methods outside this class, so they 
could even be made private.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to