blob: ea2262bba14827b65a207084ea219bba81161510 [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.
DESC_CanBeFinal=\u67e5\u627e\u53ef\u4ee5\u8bbe\u4e3a final \u7684\u5b57\u6bb5, \u8be5\u8bbe\u7f6e\u53ef\u4ee5\u7b80\u5316\u540c\u6b65\u5e76\u4f7f\u4ee3\u7801\u66f4\u6e05\u6670
DN_CanBeFinal=\u53ef\u4ee5\u4e3a Final \u7684\u5b57\u6bb5
DN_org.netbeans.modules.java.hints.threading.Tiny.notifyOnCondition=\u8c03\u7528 Condition.notify()
DESC_org.netbeans.modules.java.hints.threading.Tiny.notifyOnCondition=\u5bf9 java.util.concurrent.locks.Condition \u8c03\u7528 notify \u6216 notifyAll \u53ef\u80fd\u5e94\u66ff\u6362\u4e3a\u8c03\u7528 signal \u6216 signalAll\u3002
# {0} - the name of the field
ERR_CanBeFinal=\u5b57\u6bb5{0}\u53ef\u4ee5\u4e3a final
#{0}: method name:
ERR_NotifyOnCondition=\u5bf9 java.util.concurrent.locks.Condition \u8c03\u7528 {0}
ERR_UnlockOutsideTryFinally=Lock.lock() \u5728 finally \u4e2d\u672a\u89e3\u9501
# {0} - the name of the field to be made final
FIX_CanBeFinal=\u5c06{0}\u8bbe\u4e3a final
FIX_MoveUnlockToFinally=\u5c06 unlock() \u79fb\u5230 finally
FIX_NotifyOnConditionFix=\u66ff\u6362\u4e3a\u8c03\u7528{0}
DN_org.netbeans.modules.java.hints.threading.Tiny.waitOnCondition=\u8c03\u7528 Condition.wait()
DESC_org.netbeans.modules.java.hints.threading.Tiny.waitOnCondition=\u53ef\u80fd\u4e0d\u9700\u8981\u5bf9 java.util.concurrent.locks.Condition \u8c03\u7528 wait\u3002
ERR_WaitOnCondition=\u5bf9 java.util.concurrent.locks.Condition \u8c03\u7528 wait\u3002
DN_org.netbeans.modules.java.hints.threading.Tiny.threadRun=\u8c03\u7528 Thread.run()
DESC_org.netbeans.modules.java.hints.threading.Tiny.threadRun=\u5bf9 java.lang.Thread \u8c03\u7528 run \u53ef\u80fd\u5e94\u66ff\u6362\u4e3a\u8c03\u7528\u65b9\u6cd5 start()
ERR_ThreadRun=\u5bf9 java.lang.Thread \u8c03\u7528 run()
FIX_RemoveRedundantUnlock=\u5220\u9664\u591a\u4f59\u7684 unlock() \u8c03\u7528
FIX_ThreadRun=\u66ff\u6362\u4e3a Thread.start()
DN_org.netbeans.modules.java.hints.threading.Tiny.threadStartInConstructor=\u5728\u6784\u9020\u51fd\u6570\u4e2d\u542f\u52a8\u7ebf\u7a0b
DESC_org.netbeans.modules.java.hints.threading.Tiny.threadStartInConstructor=\u5728\u6784\u9020\u51fd\u6570\u4e2d\u542f\u52a8\u65b0\u7ebf\u7a0b\u4f1a\u5f88\u5371\u9669, \u5e94\u907f\u514d\u6267\u884c\u6b64\u64cd\u4f5c\u3002
ERR_ThreadStartInConstructor=\u5728\u6784\u9020\u51fd\u6570\u4e2d\u542f\u52a8\u65b0\u7ebf\u7a0b
DN_org.netbeans.modules.java.hints.threading.Tiny.threadYield=\u8c03\u7528 Thread.yield()
DESC_org.netbeans.modules.java.hints.threading.Tiny.threadYield=\u5bf9 java.lang.Thread \u8c03\u7528\u65b9\u6cd5 yield() \u901a\u5e38\u7528\u4e8e\u63a9\u9970\u540c\u6b65\u95ee\u9898, \u5e94\u907f\u514d\u6267\u884c\u6b64\u64cd\u4f5c\u3002
ERR_ThreadYield=\u5bf9 java.lang.Thread \u8c03\u7528 yield()
DN_org.netbeans.modules.java.hints.threading.Tiny.threadSuspend=\u8c03\u7528 Thread.stop()/suspend()/resume()
DESC_org.netbeans.modules.java.hints.threading.Tiny.threadSuspend=java.lang.Thread \u7684 stop(), suspend() \u548c resume() \u65b9\u6cd5\u90fd\u5f88\u5371\u9669, \u4e0d\u5e94\u4f7f\u7528\u5b83\u4eec\u3002
#{0}: method name (stop, suspend, resume):
ERR_ThreadSuspend=\u5bf9 java.lang.Thread \u8c03\u7528 {0}
DN_org.netbeans.modules.java.hints.threading.Tiny.nestedSynchronized=\u5d4c\u5957\u7684\u540c\u6b65\u5757
DESC_org.netbeans.modules.java.hints.threading.Tiny.nestedSynchronized=\u5d4c\u5957\u540c\u6b65\u5757\u65e2\u6ca1\u6709\u7528\u5904 (\u5982\u679c\u5b83\u4eec\u4f7f\u7528\u76f8\u540c\u7684\u9501\u5b9a\u5bf9\u8c61), \u53c8\u5f88\u5371\u9669\u3002
ERR_NestedSynchronized=\u5d4c\u5957\u7684\u540c\u6b65\u5757
DN_org.netbeans.modules.java.hints.threading.Tiny.emptySynchronized=\u7a7a\u540c\u6b65\u5757
DESC_org.netbeans.modules.java.hints.threading.Tiny.emptySynchronized=\u7a7a\u540c\u6b65\u5757\u901a\u5e38\u6ca1\u6709\u7528\u5904
ERR_EmptySynchronized=\u7a7a\u540c\u6b65\u5757
DN_org.netbeans.modules.java.hints.threading.Tiny.synchronizedOnLock=\u5bf9 Lock \u6267\u884c\u540c\u6b65
DESC_org.netbeans.modules.java.hints.threading.Tiny.synchronizedOnLock=\u901a\u5e38\u4e0d\u9700\u8981\u5bf9 java.util.concurrent.locks.Lock \u6267\u884c\u540c\u6b65, \u5e94\u66ff\u6362\u4e3a Lock.lock()-Lock.unlock()
ERR_SynchronizedOnLock=\u5bf9 java.util.concurrent.locks.Lock \u6267\u884c\u540c\u6b65
FIX_SynchronizedOnLock=\u66ff\u6362\u4e3a Lock.lock()-Lock.unlock()
DN_org.netbeans.modules.java.hints.threading.Tiny.volatileArray=\u53ef\u53d8\u6570\u7ec4\u5b57\u6bb5
DESC_org.netbeans.modules.java.hints.threading.Tiny.volatileArray=\u67e5\u627e\u53ef\u53d8\u6570\u7ec4\u5b57\u6bb5\u7684\u58f0\u660e\u3002
ERR_VolatileArrayField=\u53ef\u53d8\u6570\u7ec4\u5b57\u6bb5
DN_org.netbeans.modules.java.hints.threading.Tiny.unlockOutsideTryFinally=Lock \u5728 finally \u4e2d\u672a\u89e3\u9501
DESC_org.netbeans.modules.java.hints.threading.Tiny.unlockOutsideTryFinally=\u67e5\u627e\u672a\u6b63\u786e\u5305\u88c5\u5728 try-finally \u4e2d\u7684 Lock.lock()-Lock.unlock() \u7684\u5b9e\u4f8b\u3002
DN_org.netbeans.modules.java.hints.threading.Tiny.unsyncWait=\u5728\u540c\u6b65\u4e0a\u4e0b\u6587\u5916\u90e8\u8c03\u7528\u4e86 .wait
DESC_org.netbeans.modules.java.hints.threading.Tiny.unsyncWait=\u5728\u540c\u6b65\u4e0a\u4e0b\u6587\u5916\u90e8\u8c03\u7528\u4e86 .wait
ERR_UnsyncedWait=\u5728\u540c\u6b65\u4e0a\u4e0b\u6587\u5916\u90e8\u8c03\u7528 Object.wait
DN_org.netbeans.modules.java.hints.threading.Tiny.unsyncNotify=\u5728\u540c\u6b65\u4e0a\u4e0b\u6587\u5916\u90e8\u8c03\u7528\u4e86 .notify
DESC_org.netbeans.modules.java.hints.threading.Tiny.unsyncNotify=\u5728\u540c\u6b65\u4e0a\u4e0b\u6587\u5916\u90e8\u8c03\u7528\u4e86 .notify
ERR_UnsyncedNotify=\u5728\u540c\u6b65\u4e0a\u4e0b\u6587\u5916\u90e8\u8c03\u7528 Object.notify
DN_org.netbeans.modules.java.hints.threading.Tiny.sleepInSync=\u540c\u6b65\u4e0a\u4e0b\u6587\u4e2d\u5b58\u5728 Thread.sleep
DESC_org.netbeans.modules.java.hints.threading.Tiny.sleepInSync=\u5728\u540c\u6b65\u4e0a\u4e0b\u6587\u4e2d\u8c03\u7528 Thread.sleep \u4f1a\u5bfc\u81f4\u6027\u80fd\u95ee\u9898
ERR_SleepInSync=\u5728\u540c\u6b65\u4e0a\u4e0b\u6587\u4e2d\u8c03\u7528\u4e86 Thread.sleep
DN_org.netbeans.modules.java.hints.threading.Tiny.sleepInLoop=\u5faa\u73af\u4e2d\u5b58\u5728 Thread.sleep
DESC_org.netbeans.modules.java.hints.threading.Tiny.sleepInLoop=\u5728\u5faa\u73af\u4e2d\u8c03\u7528 Thread.sleep \u4f1a\u5bfc\u81f4\u6027\u80fd\u95ee\u9898
ERR_SleepInLoop=\u5728\u5faa\u73af\u4e2d\u8c03\u7528\u4e86 Thread.sleep
FIX_UnlockOutsideTryFinally=\u4f7f\u7528 try-finally \u8fdb\u884c\u5305\u88c5
MSG_ExtraUnlock=\u591a\u4f59\u7684 unlock() \u8c03\u7528; finally \u4e2d\u7684\u9501\u5b9a\u5df2\u91ca\u653e