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");
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/se5.0/html/ClassFile.doc.html#23242
* @see java.lang.Class#isInterface()
* @return the flag
*/
public int getAccessFlags() {
return accessFlags;
@ -335,6 +336,7 @@ public class ClassFile {
/**
* Get the signature of the class with generic types.
* @return the signature
*/
public String getThisSignature() {
return thisSignature;
@ -342,6 +344,7 @@ public class ClassFile {
/**
* Get the signature of the super class with generic types.
* @return the signature
*/
public String getSuperSignature() {
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");
you may not use this file except in compliance with the License.
@ -35,6 +35,7 @@ public class LineNumberTable {
* @param input
* the stream of the class
* @throws IOException
* if any i/O error occur
*/
LineNumberTable( DataInputStream input ) throws IOException {
int count = input.readUnsignedShort();
@ -79,7 +80,7 @@ public class LineNumberTable {
/**
* Get the line number of the last code block.
* @return
* @return the line number
*/
public int getLastLineNr() {
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");
* 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
* @param className
* the class name of the Java code
* @param methodName
* the method of the Java code
* @param lineNumber
* the line number in Java Code
* @return a new instance