agutierrez-ext před 4 roky
rodič
revize
4e9f09b14f
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/com/vespot/utils/Utils.java

+ 2 - 2
src/com/vespot/utils/Utils.java Zobrazit soubor

@@ -21,7 +21,7 @@ import javax.xml.bind.Unmarshaller;
21 21
  */
22 22
 public class Utils {
23 23
     
24
-    public String objectToXml(Object obj, Class c) {
24
+    public static String objectToXml(Object obj, Class c) {
25 25
         try {
26 26
             JAXBContext context = JAXBContext.newInstance(c);
27 27
             Marshaller marshaller = context.createMarshaller();
@@ -36,7 +36,7 @@ public class Utils {
36 36
         return null;
37 37
     }
38 38
     
39
-    public Object xmlToObject(String content, Class c) {
39
+    public static Object xmlToObject(String content, Class c) {
40 40
         try {
41 41
             JAXBContext context = JAXBContext.newInstance(c);
42 42
             Unmarshaller unmarsheller = context.createUnmarshaller();