src/share/classes/com/sun/tools/javah/LLNI.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 43,53 **** import javax.lang.model.type.PrimitiveType; import javax.lang.model.type.TypeKind; import javax.lang.model.type.TypeMirror; import javax.lang.model.type.TypeVisitor; import javax.lang.model.util.ElementFilter; ! import javax.lang.model.util.SimpleTypeVisitor7; /* * <p><b>This is NOT part of any supported API. * If you write code that depends on this, you do so at your own * risk. This code and its internal interfaces are subject to change --- 43,53 ---- import javax.lang.model.type.PrimitiveType; import javax.lang.model.type.TypeKind; import javax.lang.model.type.TypeMirror; import javax.lang.model.type.TypeVisitor; import javax.lang.model.util.ElementFilter; ! import javax.lang.model.util.SimpleTypeVisitor8; /* * <p><b>This is NOT part of any supported API. * If you write code that depends on this, you do so at your own * risk. This code and its internal interfaces are subject to change
*** 626,636 **** protected String llniFieldName(VariableElement field) { return maskName(field.getSimpleName().toString()); } protected final boolean isLongOrDouble(TypeMirror t) { ! TypeVisitor<Boolean,Void> v = new SimpleTypeVisitor7<Boolean,Void>() { public Boolean defaultAction(TypeMirror t, Void p){ return false; } public Boolean visitArray(ArrayType t, Void p) { return visit(t.getComponentType(), p); --- 626,636 ---- protected String llniFieldName(VariableElement field) { return maskName(field.getSimpleName().toString()); } protected final boolean isLongOrDouble(TypeMirror t) { ! TypeVisitor<Boolean,Void> v = new SimpleTypeVisitor8<Boolean,Void>() { public Boolean defaultAction(TypeMirror t, Void p){ return false; } public Boolean visitArray(ArrayType t, Void p) { return visit(t.getComponentType(), p);