Remove printer handler and printer manager interface, remove category support and use java 1.4 as the base
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1450147 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java b/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java
index 9dfe26e..fe1fdf6 100644
--- a/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java
+++ b/inventory/src/main/java/org/apache/felix/inventory/PrinterMode.java
@@ -47,13 +47,13 @@
public static PrinterMode valueOf(final String m) {
if ( TEXT.name().equals(m) ) {
return TEXT;
- } else if ( HTML_BODY.equals(m) ) {
+ } else if ( HTML_BODY.name().equals(m) ) {
return HTML_BODY;
- } else if ( JSON.equals(m) ) {
+ } else if ( JSON.name().equals(m) ) {
return JSON;
- } else if ( ZIP_FILE_TEXT.equals(m) ) {
+ } else if ( ZIP_FILE_TEXT.name().equals(m) ) {
return ZIP_FILE_TEXT;
- } else if ( ZIP_FILE_JSON.equals(m) ) {
+ } else if ( ZIP_FILE_JSON.name().equals(m) ) {
return ZIP_FILE_JSON;
}
return null;