VirtualBox

Changeset 31095 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Jul 26, 2010 8:31:46 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64047
Message:

Java: few warnings shut up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/glue-java.xsl

    r31070 r31095  
    23842384    }
    23852385
     2386    @SuppressWarnings( "unchecked")
    23862387    public static <T> T[] unwrap(Class<T> wrapperClass, List<T> thisPtrs) {
    23872388        if (thisPtrs==null)
     
    23922393    }
    23932394
     2395    @SuppressWarnings( "unchecked" )
    23942396    public static <T> T queryInterface(Object obj, String uuid, Class<T> iface)
    23952397    {
     
    24092411    }
    24102412
     2413    @SuppressWarnings("unchecked")
    24112414    public static <T1 extends IUnknown,T2> T2[] unwrap2(Class<T1> wrapperClass1, Class<T2> wrapperClass2, List<T1> thisPtrs) {
    24122415        if (thisPtrs==null || thisPtrs.size() == 0)  return null;
     
    32073210    }
    32083211
     3212    @SuppressWarnings("unchecked" )
    32093213    public static <T1 extends Enum <T1>, T2 extends Enum <T2>> List<T2> convertEnums(Class<T1> fromClass,
    32103214                                                                                     Class<T2> toClass,
     
    32163220            List<T2> ret = new ArrayList<T2>(values.size());
    32173221            for (T1 v : values) {
    3218                 // static method is called with null this
     3222                // static method is called with null this               
    32193223                ret.add((T2)fromValue.invoke(null, v.name()));
    32203224            }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette