This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 253020 - JMX: Refactor: getCacheTypeFor() for NoIdentityMap should return "NoIdentity" instead "None"
Summary: JMX: Refactor: getCacheTypeFor() for NoIdentityMap should return "NoIdentity"...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://wiki.eclipse.org/EclipseLink/D...
Whiteboard:
Keywords:
Depends on: 248748 316513
Blocks:
  Show dependency tree
 
Reported: 2008-10-31 15:57 EDT by Michael OBrien CLA
Modified: 2022-06-09 10:21 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael OBrien CLA 2008-10-31 15:57:53 EDT
As a result of a code review for bug# 248748 on where WebLogic specific functionality was added to MBean services on 20081031

See
http://wiki.eclipse.org/EclipseLink/DesignDocs/248748#Code_Reviews

Refactor:
---------
From D.M.

String naming/labelling for cache type (potential confusion)

For the following:

+    /**
+     * INTERNAL:
+     * getCacheTypeFor: Give a more UI-friendly version of the cache type
+     */
+    private String getCacheTypeFor(Class identityMapClass) {
+        if (identityMapClass == CacheIdentityMap.class) {
+            return "Cache";
+        } else if (identityMapClass == FullIdentityMap.class) {
+            return "Full";
+        } else if (identityMapClass == HardCacheWeakIdentityMap.class) {
+            return "HardWeak";
+        } else if (identityMapClass == NoIdentityMap.class) {
+            return "None";
+        } else if (identityMapClass == SoftCacheWeakIdentityMap.class) {
+            return "SoftWeak";
+        } else if (identityMapClass == WeakIdentityMap.class) {
+            return "Weak";
+        } else if (identityMapClass == SoftIdentityMap.class) {
+            return "Soft";
+        }
+        return "N/A";
+    }

NoIdentityMap returns "None"
and the else { returns "N/A"

I think these could be confused and NoIdentityMap should return "NoIdentity" instead of "None".
Just a minor thing to avoid confusion.
Comment 1 Tom Ware CLA 2009-04-16 11:02:49 EDT
Updating priority due to revised bug categorization process.  See the following page for details:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines#Priority_and_Target_Milestone 

If you feel the updated priority is incorrect, please send an email to eclipselink-users@eclipse.org.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:21:58 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink