mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8340082: Use inline return tag in java.base
Reviewed-by: iris, prappo, lancea, djelinski, naoto, liach
This commit is contained in:
parent
1a0a53883f
commit
89c172ac47
21 changed files with 32 additions and 59 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2024, 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
|
||||
|
@ -56,16 +56,14 @@ public class MalformedInputException
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the length of the input.
|
||||
* @return the length of the input
|
||||
* {@return the length of the input}
|
||||
*/
|
||||
public int getInputLength() {
|
||||
return inputLength;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the message.
|
||||
* @return the message
|
||||
* {@return the message}
|
||||
*/
|
||||
public String getMessage() {
|
||||
return "Input length = " + inputLength;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2024, 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
|
||||
|
@ -56,16 +56,14 @@ public class UnmappableCharacterException
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the length of the input.
|
||||
* @return the length of the input
|
||||
* {@return the length of the input}
|
||||
*/
|
||||
public int getInputLength() {
|
||||
return inputLength;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the message.
|
||||
* @return the message
|
||||
* {@return the message}
|
||||
*/
|
||||
public String getMessage() {
|
||||
return "Input length = " + inputLength;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue