blob: a91d7e5b86bd50eed7ef72e27a28de31fe01a129 [file] [log] [blame]
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# Copyright 2010 Oracle and/or its affiliates. All rights reserved.
#
# Oracle and Java are registered trademarks of Oracle and/or its affiliates.
# Other names may be trademarks of their respective owners.
#
# The contents of this file are subject to the terms of either the GNU
# General Public License Version 2 only ("GPL") or the Common
# Development and Distribution License("CDDL") (collectively, the
# "License"). You may not use this file except in compliance with the
# License. You can obtain a copy of the License at
# http://www.netbeans.org/cddl-gplv2.html
# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
# specific language governing permissions and limitations under the
# License. When distributing the software, include this License Header
# Notice in each file and include the License file at
# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the GPL Version 2 section of the License file that
# accompanied this code. If applicable, add the following below the
# License Header, with the fields enclosed by brackets [] replaced by
# your own identifying information:
# "Portions Copyrighted [year] [name of copyright owner]"
#
# If you wish your version of this file to be governed by only the CDDL
# or only the GPL Version 2, indicate your decision by adding
# "[Contributor] elects to include this software in this distribution
# under the [CDDL or GPL Version 2] license." If you do not indicate a
# single choice of license, a recipient has the option to distribute
# your version of this file under either the CDDL, the GPL Version 2 or
# to extend the choice of license to its licensees as provided above.
# However, if you add GPL Version 2 code and therefore, elected the GPL
# Version 2 license, then the option applies only if the new code is
# made subject to such option by the copyright holder.
#
# Contributor(s):
#
# Portions Copyrighted 2010 Sun Microsystems, Inc.
#
DN_org.netbeans.modules.java.hints.perf.ManualArrayCopy=\u624b\u52d5\u914d\u5217\u30b3\u30d4\u30fc
DESC_org.netbeans.modules.java.hints.perf.ManualArrayCopy=for\u30eb\u30fc\u30d7\u3092\u4f7f\u3063\u3066\u624b\u52d5\u3067\u914d\u5217\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3044\u308b\u7b87\u6240\u3092\u691c\u7d22\u3057\u307e\u3059
ERR_manual-array-copy-coll=\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3078\u306e\u624b\u52d5\u914d\u5217\u30b3\u30d4\u30fc
FIX_manual-array-copy-coll=Collection.addAll(Arrays.asList(...))\u306b\u7f6e\u63db
ERR_manual-array-copy=\u624b\u52d5\u914d\u5217\u30b3\u30d4\u30fc
FIX_manual-array-copy=System.arraycopy\u306b\u7f6e\u63db
DN_org.netbeans.modules.java.hints.perf.SizeEqualsZero=.size()==0\u306e\u4f7f\u7528
DESC_org.netbeans.modules.java.hints.perf.SizeEqualsZero=.isEmpty()\u307e\u305f\u306f! \u3092\u4f7f\u7528\u3002\u53ef\u80fd\u306a\u5834\u5408\u3001.size()==0\u307e\u305f\u306f .size()!=0\u306e\u4ee3\u308f\u308a\u306bisEmpty()\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002
ERR_SizeEqualsZero=.size()==0\u306f .isEmpty()\u306b\u7f6e\u63db\u3067\u304d\u307e\u3059
ERR_SizeEqualsZeroNeg=.size()!=0\u306f! \u306b\u7f6e\u63db\u3067\u304d\u307e\u3059\u3002isEmpty()
FIX_RedundantToString=.toString()\u306e\u524a\u9664
FIX_RemoveBoxingOfBoxed=\u4f59\u5206\u306a\u30dc\u30c3\u30af\u30b9\u5316\u306e\u524a\u9664
FIX_ReplaceStringBufferByString=String\u3067\u7f6e\u63db
# {0} - wrapper type simple name
# {1} - parse method name
FIX_UnnecessaryTempFromString1={0}.{1}()\u306b\u7f6e\u63db
# {0} - wrapper type simple name
FIX_UnnecessaryTempToString={0}.toString()\u306b\u7f6e\u63db
FIX_UseIsEmpty=.size()==0\u306e\u4ee3\u308f\u308a\u306b .isEmpty()\u3092\u4f7f\u7528
FIX_UseIsEmptyNeg=.size()!=0\u306e\u4ee3\u308f\u308a\u306b .isEmpty()\u3092\u4f7f\u7528
LBL_org.netbeans.modules.java.hints.perf.SizeEqualsZero.CHECK_NOT_EQUALS=.size()!=0\u304c\u3042\u308b\u304b\u3082\u78ba\u8a8d
TEXT_BoxingOfBoxedValue=\u30dc\u30c3\u30af\u30b9\u5316\u6e08\u306e\u5024\u306e\u30dc\u30c3\u30af\u30b9\u5316
TEXT_RedundantToString=\u5197\u9577\u306aString.toString()
TEXT_ReplaceStringBufferByString=StringBuffer/Builder\u306eString\u3078\u306e\u7f6e\u63db
TEXT_UnnecessaryTempFromString=String\u304b\u3089\u306e\u5909\u63db\u6642\u306e\u4e0d\u8981\u306a\u30c6\u30f3\u30dd\u30e9\u30ea
TEXT_UnnecessaryTempToSring=String\u3078\u306e\u5909\u63db\u6642\u306e\u4e0d\u8981\u306a\u30c6\u30f3\u30dd\u30e9\u30ea
TP_org.netbeans.modules.java.hints.perf.SizeEqualsZero.CHECK_NOT_EQUALS=\u3053\u306e\u30d2\u30f3\u30c8\u3067".size()!=0"\u306e\u51fa\u73fe\u3082\u5831\u544a\u3057\u307e\u3059\u304b?
DN_org.netbeans.modules.java.hints.perf.Tiny.stringConstructor=String\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf
DESC_org.netbeans.modules.java.hints.perf.Tiny.stringConstructor=\u901a\u5e38\u3001java.lang.String\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u4f7f\u7528\u306f\u610f\u5473\u304c\u3042\u308a\u307e\u305b\u3093\u3002
ERR_StringConstructor=String\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u547c\u51fa\u3057
FIX_StringConstructor=String\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u547c\u51fa\u3057\u3092\u524a\u9664
LBL_org.netbeans.modules.java.hints.perf.Tiny.SC_IGNORE_SUBSTRING=String.substring\u306e\u547c\u51fa\u3057\u3092\u542b\u3080String\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u7121\u8996
TP_org.netbeans.modules.java.hints.perf.Tiny.SC_IGNORE_SUBSTRING=java.lang.String.substring\u306e\u547c\u51fa\u3057\u3092\u542b\u3080String\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u7121\u8996
DN_org.netbeans.modules.java.hints.perf.Tiny.stringEqualsEmpty=String.equals("")
DESC_org.netbeans.modules.java.hints.perf.Tiny.stringEqualsEmpty=String.equals ("")\u306f\u3001String.length() == 0 (JDK5\u4ee5\u524d)\u307e\u305f\u306fString.isEmpty() (JDK6\u4ee5\u964d)\u306b\u7f6e\u63db\u3067\u304d\u307e\u3059
ERR_StringEqualsEmpty=String\u3068\u7a7a\u6587\u5b57\u5217\u306e\u6bd4\u8f03
FIX_StringEqualsEmpty=String.length()==0\u306b\u5909\u66f4
FIX_StringEqualsEmptyNeg=String.length()!=0\u306b\u5909\u66f4
FIX_StringEqualsEmpty16=String.isEmpty()\u306b\u5909\u66f4
DN_org.netbeans.modules.java.hints.perf.StringBuffer2Builder=StringBuffer\u306e\u7121\u610f\u5473\u306a\u4f7f\u7528
DESC_org.netbeans.modules.java.hints.perf.StringBuffer2Builder=\u53ef\u80fd\u306a\u5834\u5408\u306f\u3001StringBuffer\u3067\u306f\u306a\u304fStringBuilder\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002
ERR_StringBuffer2Builder=StringBuffer\u306fStringBuilder\u306b\u7f6e\u63db\u3067\u304d\u307e\u3059
FIX_StringBuffer2Builder=StringBuilder\u306b\u7f6e\u63db
DN_org.netbeans.modules.java.hints.perf.Tiny.lengthOneStringIndexOf=\u9577\u3055\u304c1\u306e\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u305fString.indexOf
DESC_org.netbeans.modules.java.hints.perf.Tiny.lengthOneStringIndexOf=String.indexOf\u306b\u9577\u3055\u304c1\u306e\u6587\u5b57\u5217\u30ea\u30c6\u30e9\u30eb\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u3001\u6587\u5b57\u30ea\u30c6\u30e9\u30eb\u306b\u7f6e\u63db\u3067\u304d\u307e\u3059
#the string:
ERR_LengthOneStringIndexOf=String.indexOf\u306b\u6307\u5b9a\u3055\u308c\u305f\u9577\u30551\u306e\u6587\u5b57\u5217{0}
FIX_LengthOneStringIndexOf=\u6587\u5b57\u30ea\u30c6\u30e9\u30eb\u306b\u7f6e\u63db
DN_org.netbeans.modules.java.hints.perf.Tiny.getClassInsteadOfDotClass=.class\u306b\u7f6e\u63db\u53ef\u80fd\u306a .getClass()
DESC_org.netbeans.modules.java.hints.perf.Tiny.getClassInsteadOfDotClass=\u65b0\u898f\u306b\u69cb\u7bc9\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e .getClass()\u547c\u51fa\u3057\u304c\u3059\u3050\u5f8c\u306b\u7d9a\u304f\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3092\u691c\u7d22\u3057\u307e\u3059
ERR_GetClassInsteadOfDotClass=.getClass()\u306e\u547c\u51fa\u3057\u3092 .class\u306b\u7f6e\u63db\u3067\u304d\u307e\u3059
FIX_GetClassInsteadOfDotClass=.getClass()\u306e\u547c\u51fa\u3057\u3092 .class\u306b\u7f6e\u63db
DN_org.netbeans.modules.java.hints.perf.Tiny.constantIntern=\u5b9a\u6570\u306b\u5bfe\u3059\u308bString.intern()\u547c\u51fa\u3057
DESC_org.netbeans.modules.java.hints.perf.Tiny.constantIntern=\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u5b9a\u6570\u306b\u5bfe\u3059\u308bString.intern()\u306e\u547c\u51fa\u3057\u306f\u4f59\u5206\u3067\u3059\u3002
ERR_ConstantIntern=\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u5b9a\u6570\u306eString.intern()\u547c\u51fa\u3057\u306f\u4f59\u5206\u3067\u3059
FIX_ConstantIntern=String.intern()\u306e\u547c\u51fa\u3057\u3092\u524a\u9664
DN_org.netbeans.modules.java.hints.perf.NoBooleanConstructor=\u65b0\u898fBoolean\u306e\u4f5c\u6210
DESC_org.netbeans.modules.java.hints.perf.NoBooleanConstructor=\u65b0\u898fBoolean\u306e\u4f5c\u6210\u306f\u975e\u52b9\u7387\u3067\u901a\u5e38\u306f\u7121\u610f\u5473\u3067\u3059\u3002
ERR_NoBooleanConstructor=\u65b0\u898fBoolean\u306e\u4f5c\u6210\u306f\u975e\u52b9\u7387\u3067\u3059
FIX_NoBooleanConstructorBoolean=Boolean\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u547c\u51fa\u3057\u3092\u524a\u9664
FIX_NoBooleanConstructorString=Boolean\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u547c\u51fa\u3057\u3092\u524a\u9664
DN_org.netbeans.modules.java.hints.perf.InitialCapacity.collections=\u521d\u671f\u5bb9\u91cf\u306e\u306a\u3044\u30b3\u30ec\u30af\u30b7\u30e7\u30f3
DESC_org.netbeans.modules.java.hints.perf.InitialCapacity.collections=\u521d\u671f\u5bb9\u91cf\u306e\u6307\u5b9a\u304c\u306a\u3044\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3092\u691c\u7d22\u3057\u307e\u3059\u3002\u30c6\u30b9\u30c8\u5bfe\u8c61\u306b\u306a\u308b\u306e\u306f\u914d\u5217\u306e\u88cf\u4ed8\u3051\u304c\u3042\u308b\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u307f\u3067\u3059\u3002
ERR_InitialCapacity_collections=\u521d\u671f\u5bb9\u91cf\u306e\u6307\u5b9a\u304c\u306a\u3044\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316
DN_org.netbeans.modules.java.hints.perf.InitialCapacity.stringBuilder=\u521d\u671f\u5bb9\u91cf\u306e\u306a\u3044StringBuilder
DESC_org.netbeans.modules.java.hints.perf.InitialCapacity.stringBuilder=\u521d\u671f\u5bb9\u91cf\u306e\u6307\u5b9a\u304c\u306a\u3044StringBuilder\u307e\u305f\u306fStringBuffer\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3092\u691c\u7d22\u3057\u307e\u3059\u3002
ERR_InitialCapacity_stringBuilder=\u5bb9\u91cf\u306e\u6307\u5b9a\u304c\u306a\u3044StringBuilder\u307e\u305f\u306fStringBuffer\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316
DN_org.netbeans.modules.java.hints.perf.Tiny.enumSet=EnumSet\u306b\u7f6e\u63db\u53ef\u80fd\u306aSet
DESC_org.netbeans.modules.java.hints.perf.Tiny.enumSet=EnumSet\u306b\u7f6e\u63db\u3067\u304d\u308bSet\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3092\u691c\u7d22\u3057\u307e\u3059
DN_org.netbeans.modules.java.hints.perf.Tiny.enumMap=EnumMap\u306b\u7f6e\u63db\u53ef\u80fd\u306aMap
DESC_org.netbeans.modules.java.hints.perf.Tiny.enumMap=EnumMap\u306b\u7f6e\u63db\u3067\u304d\u308bMap\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3092\u691c\u7d22\u3057\u307e\u3059
ERR_Tiny_enumSet=Set\u306fjava.util.EnumSet\u306b\u7f6e\u63db\u3067\u304d\u307e\u3059
ERR_Tiny_enumMap=Map\u306fjava.util.EnumMap\u306b\u7f6e\u63db\u3067\u304d\u307e\u3059
FIX_Tiny_enumMap=Map\u3092java.util.EnumMap\u306b\u7f6e\u63db
DN_org.netbeans.modules.java.hints.perf.Tiny.collectionsToArray=Collection.toArray\u306b\u30bc\u30ed\u8981\u7d20\u914d\u5217\u304c\u6e21\u3055\u308c\u305f
DESC_org.netbeans.modules.java.hints.perf.Tiny.collectionsToArray=Collection.toArray\u306b\u30bc\u30ed\u8981\u7d20\u914d\u5217\u3092\u6e21\u3059\u3068\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059
ERR_Tiny_collectionsToArray=Collection.toArray\u306b\u30bc\u30ed\u8981\u7d20\u914d\u5217\u304c\u6e21\u3055\u308c\u305f
FIX_Tiny_collectionsToArray=\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u30b5\u30a4\u30ba\u3068\u540c\u3058\u9577\u3055\u306e\u914d\u5217\u3092\u6e21\u3057\u3066\u304f\u3060\u3055\u3044
DN_ReplaceBufferByString=StringBuffer/StringBuilder\u306eString\u3078\u306e\u7f6e\u63db
DESC_ReplaceBufferByString=\u30d2\u30f3\u30c8\u306f\u3001\u4e00\u822c\u7684\u306a<b>String</b>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3055\u308c\u3001\u30e1\u30bd\u30c3\u30c9\u5916\u306b\u306f\u6e21\u3055\u308c\u306a\u3044\u3001\u307e\u305f\u306f\u5225\u306e\u5909\u6570\u306b\u306f\u5272\u308a\u5f53\u3066\u3089\u308c\u306a\u3044<b>StringBuffer</b>\u307e\u305f\u306f<b>StringBuilder</b>\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u691c\u51fa\u3057\u3066\u3001\u7f6e\u304d\u63db\u3048\u308b\u3088\u3046\u306b\u63d0\u6848\u3057\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u3092StringBuffer/Builder\u3067\u4fdd\u6301\u3059\u308b\u3053\u3068\u306f\u610f\u5473\u304c\u306a\u304f\u3001String\u306e\u65b9\u304c\u52b9\u7387\u7684\u3067\u3059\u3002
DN_BoxingOfBoxedValue=\u30dc\u30c3\u30af\u30b9\u5316\u6e08\u306e\u5024\u306e\u30dc\u30c3\u30af\u30b9\u5316
DESC_BoxingOfBoxedValue=\u3059\u3067\u306b\u30dc\u30c3\u30af\u30b9\u5316\u3055\u308c\u305f\u5024\u306e\u30dc\u30c3\u30af\u30b9\u5316\u3092\u5831\u544a\u3057\u307e\u3059\u3002\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u307e\u305f\u306f<i>valueOf</i>\u306f\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u30fb\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u3068\u308b\u305f\u3081\u3001\u30dc\u30c3\u30af\u30b9\u5316\u5024\u306f\u6700\u521d\u306b\u30dc\u30c3\u30af\u30b9\u5316\u304c\u89e3\u9664\u3055\u308c\u3066\u304b\u3089\u3001\u518d\u5ea6\u30dc\u30c3\u30af\u30b9\u5316\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u30e9\u30c3\u30d1\u30fc\u306e\u8ffd\u52a0\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u4f5c\u6210\u3055\u308c\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002
DN_RedundantToString=\u5197\u9577\u306aString.toString()
DESC_RedundantToString=String.toString()\u306e\u547c\u51fa\u3057\u3092\u5831\u544a\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u5b8c\u5168\u306b\u7121\u610f\u5473\u3067\u3001String\u306f\u76f4\u63a5\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002
DN_UnnecessaryTempFromString=String\u304b\u3089\u306e\u5909\u63db\u4e2d\u306e\u4e0d\u8981\u306a\u30c6\u30f3\u30dd\u30e9\u30ea
DESC_UnnecessaryTempFromString=<i>new Integer("111").intValue()</i>\u304a\u3088\u3073\u540c\u69d8\u306e\u69cb\u6210\u306e\u3088\u3046\u306a\u3001\u30dc\u30c3\u30af\u30b9\u5316\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304cString\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u89e3\u6790\u3059\u308b\u305f\u3081\u3060\u3051\u306b\u4f5c\u6210\u3055\u308c\u308b\u8981\u7d20\u3092\u691c\u51fa\u3057\u307e\u3059\u3002\u30dc\u30c3\u30af\u30b9\u5316\u30bf\u30a4\u30d7\u306b\u306f<i>parseXXX</i>\u30e1\u30bd\u30c3\u30c9\u304c\u542b\u307e\u308c\u3001\u3053\u308c\u306b\u3088\u3063\u3066\u4e00\u6642\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u305b\u305a\u306b\u5909\u63db\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002
DN_UnnecessaryTempToString=String\u3078\u306e\u5909\u63db\u4e2d\u306e\u4e0d\u8981\u306a\u30c6\u30f3\u30dd\u30e9\u30ea
DESC_UnnecessaryTempToString=<i>new Integer(11).toString()</i>\u306e\u3088\u3046\u306a\u3001\u4e00\u6642\u7684\u306a\u30dc\u30c3\u30af\u30b9\u5316\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u306eString\u8868\u73fe\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u3060\u3051\u306b\u4f5c\u6210\u3055\u308c\u308b\u5834\u6240\u3092\u691c\u51fa\u3057\u307e\u3059\u3002\u30dc\u30c3\u30af\u30b9\u5316\u30bf\u30a4\u30d7\u306b\u306f\u305d\u306e\u7528\u9014\u306e\u305f\u3081\u306e<i>toString()</i>\u9759\u7684\u30e1\u30bd\u30c3\u30c9\u304c\u542b\u307e\u308c\u307e\u3059\u3002