fix some warnings

This commit is contained in:
Volker Berlin 2021-03-20 21:00:15 +01:00
parent a80e3efa93
commit 4e375e2f0e
3 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/* /*
Copyright 2011 - 2020 Volker Berlin (i-net software) Copyright 2011 - 2021 Volker Berlin (i-net software)
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -303,6 +303,7 @@ public class ClassFile {
* http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.1-200-E * http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.1-200-E
* http://docs.oracle.com/javase/specs/jvms/se5.0/html/ClassFile.doc.html#23242 * http://docs.oracle.com/javase/specs/jvms/se5.0/html/ClassFile.doc.html#23242
* @see java.lang.Class#isInterface() * @see java.lang.Class#isInterface()
* @return the flag
*/ */
public int getAccessFlags() { public int getAccessFlags() {
return accessFlags; return accessFlags;
@ -335,6 +336,7 @@ public class ClassFile {
/** /**
* Get the signature of the class with generic types. * Get the signature of the class with generic types.
* @return the signature
*/ */
public String getThisSignature() { public String getThisSignature() {
return thisSignature; return thisSignature;
@ -342,6 +344,7 @@ public class ClassFile {
/** /**
* Get the signature of the super class with generic types. * Get the signature of the super class with generic types.
* @return the signature
*/ */
public String getSuperSignature() { public String getSuperSignature() {
return superSignature; return superSignature;

View File

@ -1,5 +1,5 @@
/* /*
Copyright 2011 - 2017 Volker Berlin (i-net software) Copyright 2011 - 2021 Volker Berlin (i-net software)
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -35,6 +35,7 @@ public class LineNumberTable {
* @param input * @param input
* the stream of the class * the stream of the class
* @throws IOException * @throws IOException
* if any i/O error occur
*/ */
LineNumberTable( DataInputStream input ) throws IOException { LineNumberTable( DataInputStream input ) throws IOException {
int count = input.readUnsignedShort(); int count = input.readUnsignedShort();
@ -79,7 +80,7 @@ public class LineNumberTable {
/** /**
* Get the line number of the last code block. * Get the line number of the last code block.
* @return * @return the line number
*/ */
public int getLastLineNr() { public int getLastLineNr() {
return line_number[line_number.length - 1]; return line_number[line_number.length - 1];

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2017 - 2019 Volker Berlin (i-net software) * Copyright 2017 - 2021 Volker Berlin (i-net software)
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -108,6 +108,8 @@ public class WasmException extends RuntimeException {
* the source file of the Java code * the source file of the Java code
* @param className * @param className
* the class name of the Java code * the class name of the Java code
* @param methodName
* the method of the Java code
* @param lineNumber * @param lineNumber
* the line number in Java Code * the line number in Java Code
* @return a new instance * @return a new instance