📄 disabledpreferencesfactory.java
字号:
package edu.stanford.nlp.util;import java.util.prefs.PreferencesFactory;import java.util.prefs.Preferences;/** * Returns do-nothing Preferences implementation. We don't use this * facility, so we want to avoid the hassles that come with the JVM's * implementation. * Taken from: http://www.allaboutbalance.com/disableprefs/index.html * * @author Robert Slifka * @author Christopher Manning * @version 2003/03/24 */public class DisabledPreferencesFactory implements PreferencesFactory { public Preferences systemRoot() { return new DisabledPreferences(); } public Preferences userRoot() { return new DisabledPreferences(); } public static void install() { try { System.setProperty("java.util.prefs.PreferencesFactory", "edu.stanford.nlp.util.DisabledPreferencesFactory"); } catch (SecurityException e) { // oh well we couldn't do it... } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -