All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.netbeans.modules.java.hints.Bundle.properties Maven / Gradle / Ivy

The newest version!
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

#
# This bundle defines the localized name of the module, as will be shown
# in the options dialog and the setup wizard, and the category folder it will
# be found in, in the options dialog under System | Modules
#


# Braces
LBL_Braces_For=For Loops Should Use Braces
LBL_Braces_While=While Loops Should Use Braces
LBL_Braces_DoWhile=Do-While Loops Should Use Braces
LBL_Braces_If=If-Else Statements Should Use Braces

DSC_Braces_For=Warns if a for loop does not \
have its body wrapped in curly braces.
DSC_Braces_While=While Loops Should Use Braces DSC_Braces_DoWhile=Do-While Loops Should Use Braces DSC_Braces_If=If-Else Statements Should Use Braces LBL_Braces_Fix=Add Braces # Assignment to itself DN_AssignmentToItself=Assignment To Itself DESC_AssignmentToItself=Assignment To Itself ERR_AssignmentToItself=Assignment To Itself LBL_ATI_Remove_FIX=Remove The Assignment LBL_ATI_Qualify_FIX=Qualify with this LBL_ATI_NewParameter_FIX=Introduce Parameter LBL_ATI_NewField_FIX=Introduce Field # Imports DN_Imports_UNUSED=Unused Import #Used in Source/Inspect: # {0} - the number of violating imports (never 0) DN_Imports_UNUSED_Multi={0,choice,1#Unused Import|1\ String comparisons should generally be done using the equals() method. FIX_WrongStringComparison_NullCheck=Use equals() with null check FIX_WrongStringComparison_TernaryNullCheck=Use equals() with null check (ternary) FIX_WrongStringComparison_NoNullCheck=Use equals() FIX_WrongStringComparison_ReverseOperands=Use equals() and reverse operands WrongStringComparisonCustomizer.ternaryNullCheck.text=Check for null using ternary conditional operator WrongStringComparisonCustomizer.stringLiteralFirst.text=Put String literals first when possible ACSD_Ternary_Null_Check=Controls whether the fix uses a ternary conditional null check. ACSD_String_Literals_First=Generates less code by avoiding a null check if one of the operands is a String literal. #Empty statements LBL_Empty_FOR_LOOP=Empty statement after 'for' LBL_Empty_ENHANCED_FOR_LOOP=Empty statement after 'for' LBL_Empty_WHILE_LOOP=Empty statement after 'while' LBL_Empty_DO_WHILE_LOOP=Empty statement after 'do' LBL_Empty_IF=Empty statement after 'if/else' LBL_Empty_BLOCK=Empty statement DSC_Empty_FOR_LOOP=Checks for 'for' statements in form
\ for(...);. DSC_Empty_WHILE_LOOP=Checks for 'while' statements in form
\ while(...);. DSC_Empty_DO_WHILE_LOOP=Checks for 'do/while' statements in form
\ do;
while
. DSC_Empty_IF=Checks for 'if/else' statements in form
\ if(...);
else;
. DSC_Empty_BLOCK=Checks for empty statements in blocks usually represented \ as superfluous semicolon. MSG_HiddenField=Field hides another field HINT_HiddenField=Declaration of a field in a class can hide declaration of \ another field in superclasses. Although possible, this is not very good programming style. MSG_FixHiddenFiledText=Rename the field MSG_FixHiddenByVariableFiledText=Rename the local variable MSG_HiddenFieldByVar=Local variable hides a field HINT_HiddenFieldByVar=Declaration of a variable in a method can hide declaration of \ a field declared in the surrounding class. Although possible, this is not very good programming style. LBL_EmptyCancel=Empty cancel() for cancelable tasks DSC_EmptyCancel=Warn about empty cancel() methods for cancelable tasks MSG_EmptyCancel=Empty cancel() #{0}: # 0 - field # 1 - method # 2 - other (unknown) #{1}: element simple name MSG_StaticAccess=Accessing static {0,choice,0#field|1#method|1Fields are final ACSD_Final_Fields=Make fields created by this hint final. DSC_StaticImport=Convert a static method/field/enum-field reference to use a static import. Feedback to http://www.netbeans.org/issues/show_bug.cgi?id=89258 DN_StaticImport=Static imports ERR_StaticImport=Convert to static import HINT_StaticImport=Convert {0} to static import HINT_StaticImport2=Add static import for {0} DN_StringBuilderAppend=String concatenation in StringBuilder.append DESC_StringBuilderAppend=Looks for string concatenation in the parameter of an invocation of the append method of StringBuilder or StringBuffer. ERR_StringBuilderAppend=String concatenation in {0}.append FIX_StringBuilderAppend=Use chain of .append methods instead of string concatenation #ThisIsAnonymous hint DN_org.netbeans.modules.java.hints.ThisInAnonymous=Synchronizing on this in anonymous class DESC_org.netbeans.modules.java.hints.ThisInAnonymous=Synchronizing on this in anonymous or local class is probably a result of refactoring and possibly a mistake ERR_ThisInAnonymous=Synchronizing on this in anonymous class ERR_ThisInAnonymousLocal=Synchronizing on this in local class FIX_ThisInAnonymous=Synchronize on enclosing class #LoggerNotStaticFinal hint DN_org.netbeans.modules.java.hints.LoggerNotStaticFinal=Logger declaration is not static final DESC_org.netbeans.modules.java.hints.LoggerNotStaticFinal=Each class should have one unique logger. If declared as a field it should be static and final. MSG_LoggerNotStaticFinal_checkLoggerDeclaration=The logger declaration field {0} should be static and final MSG_LoggerNotStaticFinal_checkLoggerDeclaration_fix=Make field {0} static and final #MultipleLoggers hint DN_org.netbeans.modules.java.hints.MultipleLoggers=Multiple loggers DESC_org.netbeans.modules.java.hints.MultipleLoggers=There are several loggers declared for a single class. MSG_MultipleLoggers_checkMultipleLoggers=Multiple loggers {0} declared for {1} class #NoLoggers hint DN_org.netbeans.modules.java.hints.NoLoggers=No loggers DESC_org.netbeans.modules.java.hints.NoLoggers=There is no logger declared for a class. MSG_NoLoggers_checkNoLoggers=No logger declared for {0} class MSG_NoLoggers_checkNoLoggers_Fix=Create logger field in {0} class #LoggersHintsCustomizer LoggerHintsCustomizer.customLogClass.text= LoggerHintsCustomizer.btnAdd.text=&Add LoggerHintsCustomizer.btnRemove.text=&Remove LoggerHintsCustomizer.lblInstructions.text=Add fully qualified names only (e.g. com.example.MyLogger) LoggerHintsCustomizer.loggersCheckbox.text=&Do not warn when custom loggers are found #ShiftOutOfRange hint DN_org.netbeans.modules.java.hints.ShiftOutOfRange=Shift operation outside of the reasonable range DESC_org.netbeans.modules.java.hints.ShiftOutOfRange=This inspection reports any instances of shift operations where the value shifted by is constant and outside of the reasonable range. Integer shift operations outside of the range 0..31 and long shift operations outside of therange 0..63 are reported. Shifting by negative or overly large values is almost certainly a coding error. MSG_ShiftOutOfRange_int=Shift operation outside of the reasonable range 0..31 MSG_ShiftOutOfRange_long=Shift operation outside of the reasonable range 0..63 #ClassStructure hints DN_org.netbeans.modules.java.hints.ClassStructure.finalClass=Final class DESC_org.netbeans.modules.java.hints.ClassStructure.finalClass=Reports any instances of classes being declared final. Some coding standards discourage final classes. MSG_FinalClass=Class {0} is declared final FIX_RemoveFinalFromClass=Remove final modifier from the {0} class declaration DN_org.netbeans.modules.java.hints.ClassStructure.finalMethod=Final method DESC_org.netbeans.modules.java.hints.ClassStructure.finalMethod=Reports any instances of methods being declared final. Some coding standards discourage final classes. MSG_FinalMethod=Method {0} is declared final FIX_RemoveFinalFromMethod=Remove final modifier from the {0} method declaration DN_org.netbeans.modules.java.hints.ClassStructure.finalPrivateMethod=Final private method DESC_org.netbeans.modules.java.hints.ClassStructure.finalPrivateMethod=Reports any instances of methods being declared final and private. As private methods cannot be meaningfully overridden, declaring them final is redundant. MSG_FinalPrivateMethod=Private method {0} is declared final DN_org.netbeans.modules.java.hints.ClassStructure.finalStaticMethod=Final static method DESC_org.netbeans.modules.java.hints.ClassStructure.finalStaticMethod=Reports any instances of methods being declared final and static. As static methods cannot be meaningfully overridden, declaring them final is redundant. MSG_FinalStaticMethod=Static method {0} is declared final DN_org.netbeans.modules.java.hints.ClassStructure.finalMethodInFinalClass=Final method in final class DESC_org.netbeans.modules.java.hints.ClassStructure.finalMethodInFinalClass=Reports any instances of methods being declared final in classes that are declared final. This is unnecessary, and may be confusing. MSG_FinalMethodInFinalClass=Method {0} is declared final in final class DN_org.netbeans.modules.java.hints.ClassStructure.noopMethodInAbstractClass=No-op method in abstract class DESC_org.netbeans.modules.java.hints.ClassStructure.noopMethodInAbstractClass=Reports any instances of no-op methods in abstract classes. It is usually a better design to make such methods abstract themselves, so that classes which inherit the methods will not forget to provide their own implementations. MSG_NoopMethodInAbstractClass=No-op method {0} should be made abstract DN_org.netbeans.modules.java.hints.ClassStructure.publicConstructorInNonPublicClass=Public constructor in non-public class DESC_org.netbeans.modules.java.hints.ClassStructure.publicConstructorInNonPublicClass=Reports all constructors in non-public classes that are declared public. MSG_PublicConstructorInNonPublicClass=Constructor is declared public in non-public class FIX_RemovePublicFromConstructor=Remove public modifier from the constructor declaration DN_org.netbeans.modules.java.hints.ClassStructure.protectedMemberInFinalClass=Protected member in final class DESC_org.netbeans.modules.java.hints.ClassStructure.protectedMemberInFinalClass=Reports any instances of members being declared protected in classes that are declared final. Such members may be declared private or package-visible instead. MSG_ProtectedMethodInFinalClass=Method {0} is declared protected in final class MSG_ProtectedFieldInFinalClass=Field {0} is declared protected in final class FIX_RemoveProtectedFromMethod=Remove protected modifier from the {0} method declaration FIX_RemoveProtectedFromField=Remove protected modifier from the {0} field declaration DN_org.netbeans.modules.java.hints.ClassStructure.markerInterface=Marker interface DESC_org.netbeans.modules.java.hints.ClassStructure.markerInterface=Reports marker interfaces which have no methods or fields. Such interfaces may be confusing, and normally indicate a design failure. Interfaces which extend two or more other interfaces will not be reported. MSG_MarkerInterface=Marker interface {0} DN_org.netbeans.modules.java.hints.ClassStructure.classMayBeInterface=Class may be interface DESC_org.netbeans.modules.java.hints.ClassStructure.classMayBeInterface=Reports any concrete or abstract classes which may be simplified to be interfaces. This occurs if the class has no superclass (other than Object), has no fields declared that are not static, final, and public, and has no methods declared that are not public and abstract, and no inner classes that cannot themselves be interfaces. MSG_ClassMayBeInterface=Class {0} may be interface FIX_ConvertClassToInterface=Convert class {0} to interface DN_org.netbeans.modules.java.hints.ClassStructure.multipleTopLevelClassesInFile=Multiple top-level classes in file DESC_org.netbeans.modules.java.hints.ClassStructure.multipleTopLevelClassesInFile=Reports any instances of multiple top-level classes in a single java file. Putting multiple top-level classes in a file can be confusing, and may degrade the usefulness of various software tools. MSG_MultipleTopLevelClassesInFile=Multiple top-level classes in file #AssignmentIssues hints DN_org.netbeans.modules.java.hints.AssignmentIssues.assignmentToForLoopParam=Assignment to for-loop parameter DESC_org.netbeans.modules.java.hints.AssignmentIssues.assignmentToForLoopParam=Reports any instances of assignment to variable declared in a for statement in the body of that statement. It also reports any attempt to increment or decrement the variable. While occasionally intended, this construct can be extremely confusing, and is often the result of a typo. MSG_AssignmentToForLoopParam=Assignment to for-loop parameter {0} DN_org.netbeans.modules.java.hints.AssignmentIssues.assignmentToCatchBlockParameter=Assignment to catch-block parameter DESC_org.netbeans.modules.java.hints.AssignmentIssues.assignmentToCatchBlockParameter=Reports any instances of assignment to variable declared as a catch block parameter. While occasionally intended, this construct can be confusing. MSG_AssignmentToCatchBlockParameter=Assignment to catch-block parameter {0} DN_org.netbeans.modules.java.hints.AssignmentIssues.assignmentToMethodParam=Assignment to method parameter DESC_org.netbeans.modules.java.hints.AssignmentIssues.assignmentToMethodParam=Reports any instances of assignment to a variable declared as a method parameter. It also reports any attempt to increment or decrement the variable. While occasionally intended, this construct can be extremely confusing, and is often the result of a typo. MSG_AssignmentToMethodParam=Assignment to method parameter {0} DN_org.netbeans.modules.java.hints.AssignmentIssues.nestedAssignment=Nested assignment DESC_org.netbeans.modules.java.hints.AssignmentIssues.nestedAssignment=Reports any instances of assignment expressions nested inside other expressions. While admirably terse, such expressions may be confusing, and violate the general design principle that a given construct should do precisely one thing. MSG_NestedAssignment=Nested assignment ''{0}'' DN_org.netbeans.modules.java.hints.AssignmentIssues.incrementDecrementUsed=Value of increment/decrement expression used DESC_org.netbeans.modules.java.hints.AssignmentIssues.incrementDecrementUsed=Reports any instances of increment or decrement expressions nested inside other expressions. While admirably terse, such expressions may be confusing, and violate the general design principle that a given construct should do precisely one thing. MSG_IncrementUsedAsExpression=Value of increment expression ''{0}'' is used MSG_DecrementUsedAsExpression=Value of decrement expression ''{0}'' is used FIX_IncrementUsedAsExpression=Extract increment expression ''{0}'' FIX_DecrementUsedAsExpression=Extract decrement expression ''{0}'' DN_org.netbeans.modules.java.hints.AssignmentIssues.replaceAssignWithOpAssign=Assignment replaceable with operator-assignment DESC_org.netbeans.modules.java.hints.AssignmentIssues.replaceAssignWithOpAssign=Reports instances of assignment operations which can be replaced by operator-assignment. Code using operator-assignment may be clearer, and theoretically more performant. MSG_ReplaceAssignmentWithOperatorAssignment=Assignment ''{0}'' is replaceable with operator-assignment FIX_ReplaceAssignmentWithOperatorAssignment=Replace assignment ''{0}'' with operator-assignment #IncompatibleMask hint DN_org.netbeans.modules.java.hints.IncompatibleMask=Incompatible mask DESC_org.netbeans.modules.java.hints.IncompatibleMask=This inspection reports any instances of bitwise mask expressions which are guaranteed to evaluate to false. Expressions checked are of the form (var & constant1) == constant2 or (var | constant1) == constant2, where constant1and constant2 are incompatible bitmask constants. MSG_IncompatibleMask=IncompatibleMask: {0} is always false #OverridableMethodCallInConstructor hint DN_org.netbeans.modules.java.hints.OverridableMethodCallInConstructor=Problematic call in the constructor DESC_org.netbeans.modules.java.hints.OverridableMethodCallInConstructor=Calling methods that can be overridden can be dangerous in the contructor because in the moment when the overridden method is called the object is not fully initialized. MSG_org.netbeans.modules.java.hints.OverridableMethodCallInConstructor=Overridable method call in constructor FIX_MakeMethod=Make the method {1} {0} FIX_MakeClass=Make the class {1} {0} #PointlessBitwiseExpression hint DN_org.netbeans.modules.java.hints.PointlessBitwiseExpression=Pointless bitwise expression DESC_org.netbeans.modules.java.hints.PointlessBitwiseExpression=This inspection reports any instances of pointless bitwise expressions. Such expressions include anding with zero, oring by zero, and shift by zero. Such expressions may be the result of automated refactorings not completely followed through to completion, and in any case are unlikely to be what the developer intended to do. MSG_PointlessBitwiseExpression=Pointless bitwise expression MSG_PointlessBitwiseExpression_fix=Zero constant should be removed MSG_PointlessBitwiseExpression_fix2=Replace expression with constant #LeakingThisInConstructor hint DN_org.netbeans.modules.java.hints.LeakingThisInConstructor=Passing suspicious parameter in the constructor DESC_org.netbeans.modules.java.hints.LeakingThisInConstructor=Using this as parameter can be dangerous in the contructor because the object is not fully initialized. MSG_org.netbeans.modules.java.hints.LeakingThisInConstructor=Leaking this in constructor #ThreadDumpStack hint DN_org.netbeans.modules.java.hints.ThreadDumpStack=Thread Dump Stack DESC_org.netbeans.modules.java.hints.ThreadDumpStack=This inspection reports any uses Thread.dumpStack(). These are often temporary debugging statements, and should probably be either removed from production code,or replaced by a more robust logging facility. MSG_ThreadDumpStack=Thread Dump Stack MSG_ThreadDumpStack_fix=Thread.dumpStack() should be removed #PrintStackTrace hint DN_org.netbeans.modules.java.hints.PrintStackTrace=Print Stack Trace DESC_org.netbeans.modules.java.hints.PrintStackTrace=This inspection reports any uses Throwable.printStackTrace() without arguments. These are often temporary debugging statements, and should probably be either removed from production code, or replaced by a more robust logging facility. MSG_PrintStackTrace=Print Stack Trace MSG_PrintStackTrace_fix=Throwable.printStackTrace() should be removed #SystemOut hint DN_org.netbeans.modules.java.hints.SystemOut=System out / err DESC_org.netbeans.modules.java.hints.SystemOut=This inspection reports any uses of System.out or System.err. These are often temporary debugging statements, and should probably be either removed from production code, or replaced by a more robust logging facility. MSG_SystemOut=Uses of System.out or System.err are often temporary debugging statements. MSG_SystemOut_fix=Remove statement #ObsoleteCollection hint DN_org.netbeans.modules.java.hints.ObsoleteCollection=Obsolete Collection DESC_org.netbeans.modules.java.hints.ObsoleteCollection=This inspection reports any uses of java.util.Vector or java.util.Hashtable. While still supported, these classes were made obsolete by the JDK1.2 collection classes, and should probably not be used in new development. MSG_ObsoleteCollection=Obsolete Collection #StaticNonFinalUsedInInitialization hint DN_org.netbeans.modules.java.hints.StaticNonFinalUsedInInitialization=Static non-final variable used during initialization DESC_org.netbeans.modules.java.hints.StaticNonFinalUsedInInitialization=Using static non-final variables can be dangerous in the initialization code because their values may depend on the order of initialization statements MSG_org.netbeans.modules.java.hints.StaticNonFinalUsedInInitialization=Usage of static non-final variable during initialization LBL_WarnHiddenStaticFields=Warn when the hidden field is static TP_WarnHiddenStaticFields=Whether the hint should warn when the hidden field is static DN_SerialVersionUID=Add serialVersionUID SuspiciousNamesCustomizer.addButton.text=Add... SuspiciousNamesCustomizer.jLabel1.text=Groups of compatible names: SuspiciousNamesCustomizer.removeButton.text=Remove SuspiciousNamesCustomizer.editButton.text=Edit... DN_InitializerMayBeStatic=Initializer may be static DESC_InitializerMayBeStatic=The initializer does not access any instance variables or methods, it can be static and execute just once, \ not during each instance creation.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy