bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
final public static ByteBuffer wrap (byte[] array) { return wrap (array, 0, array.length); }
final public static ByteBuffer wrap (byte[] array) { return new ByteBufferImpl (array, 0, array.length, offset + length, offset, -1, false); }
58,834
protected static byte[] createUDPDatagramHeader(int file_index, short opcode, int array_size) { if(array_size<header_size) throw new InvalidParameterException("array_size must be greater than "+header_size+": "+array_size); ByteBuffer bb = ByteBuffer.allocate(array_size); bb = (bb.putInt(file_index).putShort...
protected static byte[] createUDPDatagramHeader(int file_index, short opcode, int array_size) { if(array_size<header_size) throw new InvalidParameterException("array_size must be greater than "+header_size+": "+array_size); ByteBuffer bb = ByteBuffer.allocate(array_size); bb = (bb.putInt(file_index).putShort...
58,835
public void run(String[] args) { GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities()); VertexProgWarp demo = new VertexProgWarp(); canvas.addGLEventListener(demo); final Animator animator = new Animator(canvas); demo.setDemoListener(new DemoListener() { public vo...
public void run(String[] args) { GLCanvas canvas = new GLCanvas(); VertexProgWarp demo = new VertexProgWarp(); canvas.addGLEventListener(demo); final Animator animator = new Animator(canvas); demo.setDemoListener(new DemoListener() { public void shutdownDemo() { runExit(animator); ...
58,836
MethodDef(String name, // the name of the method String className, // className (for constructor methods) Occurrence occ, // where it was defined ClassDef type, // the return type of the method ScopedDef parentScope) { // which scope owns it this(name, o...
MethodDef(String name, // the name of the method String className, // className (for constructor methods) Occurrence occ, // where it was defined ClassDef type, // the return type of the method ScopedDef parentScope) { // which scope owns it this(name, o...
58,837
MethodDef(String name, // the name of the method String className, // className (for constructor methods) Occurrence occ, // where it was defined ClassDef type, // the return type of the method ScopedDef parentScope) { // which scope owns it this(name, o...
MethodDef(String name, // the name of the method String className, // className (for constructor methods) Occurrence occ, // where it was defined ClassDef type, // the return type of the method ScopedDef parentScope) { // which scope owns it this(name, o...
58,838
void add(VariableDef param) { if (parameters == null) { // lazy instantiation parameters = new JavaVector(); } parameters.addElement(param); }
void add(ClassDef excep) { if (parameters == null) { // lazy instantiation parameters = new JavaVector(); } parameters.addElement(param); }
58,839
void add(VariableDef param) { if (parameters == null) { // lazy instantiation parameters = new JavaVector(); } parameters.addElement(param); }
void add(VariableDef param) { if (parameters == null) { // lazy instantiation parameters = new JavaVector(); } parameters.addElement(param); }
58,840
void add(VariableDef param) { if (parameters == null) { // lazy instantiation parameters = new JavaVector(); } parameters.addElement(param); }
void add(VariableDef param) { if (parameters == null) { // lazy instantiation parameters = new JavaVector(); } exceptions.addElement(excep); }
58,841
ScopedDef(String name, // the scoped name Occurrence occ, // where it's defined ScopedDef parentScope) { // scope containing the def super(name, occ, parentScope); // Create a new hashtable for fast element lookup elements = new JavaHashtable(); }
ScopedDef(String name, // the scoped name Occurrence occ, // where it's defined ScopedDef parentScope) { // scope containing the def super(name, occ, parentScope); // Create a new hashtable for fast element lookup elements = new JavaHashtable(); }
58,842
public ClassDefProxy(ClassDef ref) { whereCreated = new Throwable(); if (ref.getName().equals("RuntimeException")) { new Exception("what's up with this: " + ref).printStackTrace(); } // System.out.println("ref="+ref); setName(ref.getName()); this.packageName = re...
public ClassDefProxy() { whereCreated = new Throwable(); if (ref.getName().equals("RuntimeException")) { new Exception("what's up with this: " + ref).printStackTrace(); } // System.out.println("ref="+ref); setName(ref.getName()); this.packageName = ref.getPackageN...
58,843
public ClassDefProxy(ClassDef ref) { whereCreated = new Throwable(); if (ref.getName().equals("RuntimeException")) { new Exception("what's up with this: " + ref).printStackTrace(); } // System.out.println("ref="+ref); setName(ref.getName()); this.packageName = re...
public ClassDefProxy(ClassDef ref) { whereCreated = new Throwable(); if (ref.getName().equals("RuntimeException")) { new Exception("what's up with this: " + ref).printStackTrace(); } // System.out.println("ref="+ref); setName(ref.getName()); this.packageName = re...
58,844
private EOQualifierSQLGeneration.Support supportForQualifier(EOQualifier qualifier) { EOQualifierSQLGeneration.Support support = null; if(qualifier instanceof EOKeyValueQualifier) { synchronized (_qualifierKeys) { support = (Support) _q...
private EOQualifierSQLGeneration.Support supportForQualifier(EOQualifier qualifier) { EOQualifierSQLGeneration.Support support = null; if(qualifier instanceof EOKeyValueQualifier) { synchronized (_qualifierKeys) { support = (Support) _q...
58,845
public void setDefaultDelegateOnEditingContext(EOEditingContext ec, boolean validation);
public void setDefaultDelegateOnEditingContext(EOEditingContext ec, boolean validation);
58,846
public static Object readPropertyListFromFileInFramework(String fileName, String aFrameWorkName, NSArray languageList) { return readPropertyListFromFileInFramework( fileName, aFrameWorkName...
public static Object readPropertyListFromFileInFramework(String fileName, String aFrameWorkName, NSArray languageList) { return readPropertyListFromFileInFramework( fileName, aFrameWorkName...
58,848
public static String stackTrace(Throwable t) { ByteArrayOutputStream baos = new ByteArrayOutputStream(2048); PrintStream printStream = new PrintStream(baos); t.printStackTrace(printStream); return baos.toString(); }
public static String stackTrace(Throwable t) { ByteArrayOutputStream baos = new ByteArrayOutputStream(2048); PrintStream printStream = new PrintStream(baos); t.printStackTrace(printStream); return baos.toString(); }
58,850
public void disconnect() { //impl.disconnect(); }
impl.disconnect(); impl.disconnect(); publicimpl.disconnect(); voidimpl.disconnect(); disconnect()impl.disconnect(); impl.disconnect(); {impl.disconnect(); impl.disconnect(); impl.disconnect(); impl.disconnect(); //impl.disconnect();impl.disconnect(); impl.disconnect(); }
58,852
public synchronized void receive(DatagramPacket p) throws IOException { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkAccept(p.getAddress().getHostAddress(), p.getPort()); impl.receive(p); }
public synchronized void receive(DatagramPacket p) throws IOException { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkAccept (p.getAddress().getHostName (), p.getPort ()); if (impl == null) throw new IOException ("Cannot initialize Socket implementation"); if (ch != null && !ch....
58,859
public void send(DatagramPacket p) throws IOException { // JDK1.2: Don't do security checks if socket is connected; see jdk1.2 api. SecurityManager s = System.getSecurityManager(); if (s != null) { InetAddress addr = p.getAddress(); if (addr.isMulticastAddress()) s.checkMulticast(addr); else s.chec...
public void send(DatagramPacket p) throws IOException { // JDK1.2: Don't do security checks if socket is connected; see jdk1.2 api. SecurityManager s = System.getSecurityManager(); if (s != null) { InetAddress addr = p.getAddress(); if (addr.isMulticastAddress()) s.checkMulticast(addr); else s.chec...
58,860
public void send(DatagramPacket p) throws IOException { // JDK1.2: Don't do security checks if socket is connected; see jdk1.2 api. SecurityManager s = System.getSecurityManager(); if (s != null) { InetAddress addr = p.getAddress(); if (addr.isMulticastAddress()) s.checkMulticast(addr); else s.chec...
public void send(DatagramPacket p) throws IOException { // JDK1.2: Don't do security checks if socket is connected; see jdk1.2 api. SecurityManager s = System.getSecurityManager(); if (s != null) { InetAddress addr = p.getAddress(); if (addr.isMulticastAddress()) s.checkMulticast(addr); else s.chec...
58,861
public int getPort() { return port; }
public final int getPort() { return port; }
58,867
protected abstract void bind(int lport, InetAddress laddr) throws SocketException;
protected abstract void bind(int lport, InetAddress laddr) throws SocketException;
58,868
public Object get(int type) { return callbacks[type]; }
public Object get(int type) { return callbacks[type]; }
58,869
protected void selectRecipeFromDatabase() { Map recipeNamesHT = helper.getRecipeNamesFromDatabase(); Set dbRecipeNames = recipeNamesHT.keySet(); if (dbRecipeNames.isEmpty()) { JOptionPane.showMessageDialog(this, "There are no recipes in the database", ...
protected void selectRecipeFromDatabase() { Map recipeNamesHT = helper.getRecipeNamesFromDatabase(); Set dbRecipeNames = recipeNamesHT.keySet(); if (dbRecipeNames.isEmpty()) { JOptionPane.showMessageDialog(this, "There are no recipes in the database", ...
58,870
protected void selectRecipeFromDatabase() { Map recipeNamesHT = helper.getRecipeNamesFromDatabase(); Set dbRecipeNames = recipeNamesHT.keySet(); if (dbRecipeNames.isEmpty()) { JOptionPane.showMessageDialog(this, "There are no recipes in the database", ...
protected void selectRecipeFromDatabase() { Map recipeNamesHT = helper.getRecipeNamesFromDatabase(); Set dbRecipeNames = recipeNamesHT.keySet(); if (dbRecipeNames.isEmpty()) { JOptionPane.showMessageDialog(this, "There are no recipes in the database", ...
58,871
public ReadOnlyProperties(Set readOnlyKeys, Properties defaults) { super(defaults); this.readOnlyKeys = readOnlyKeys; init(); }
public ReadOnlyProperties(Set readOnlyKeys, Properties defaults) { super(defaults); this.readOnlyKeys = readOnlyKeys; init(); }
58,873
public void setReadOnlyProperty(String key, String newValue) { Object o = get(key); if (o != null && o.equals(newValue)) return; // no change super.put(key, newValue); // System.out.println("Setting read only property: " + key); fireChange(); }
public void setReadOnlyProperty(String key, String newValue) { Object o = get(key); if (o != null && o.equals(newValue)) return; // no change super.put(key, newValue); // System.out.println("Setting read only property: " + key); fireChange(); }
58,874
public static final boolean containsPattern(String filename, String pattern) { Logger log = CSMART.createLogger("org.coguaar.tools.csmart.FileParseUtil"); // Create the CharBuffer for the file. FileInputStream iStream = null; try { iStream = new FileInputStream(ConfigFinder.getInstance().locateFile(f...
public static final boolean containsPattern(String filename, String pattern) { Logger log = CSMART.createLogger("org.coguaar.tools.csmart.FileParseUtil"); // Create the CharBuffer for the file. FileInputStream iStream = null; try { iStream = new FileInputStream(ConfigFinder.getInstance().locateFile(f...
58,875
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); _organisation = getProperty(_organisation, ivy, "ivy.organisation"); _module = getProperty(_module, ivy, "ivy.module"); ensureResolved(isHaltonfailure(), getOrganisation(), getModule()); _con...
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); _organisation = getProperty(_organisation, ivy, "ivy.organisation"); _module = getProperty(_module, ivy, "ivy.module"); ensureResolved(isHaltonfailure(), getOrganisation(), getModule()); _con...
58,877
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); _organisation = getProperty(_organisation, ivy, "ivy.organisation"); _module = getProperty(_module, ivy, "ivy.module"); ensureResolved(isHaltonfailure(), getOrganisation(), getModule()); _con...
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); _organisation = getProperty(_organisation, ivy, "ivy.organisation"); _module = getProperty(_module, ivy, "ivy.module"); ensureResolved(isHaltonfailure(), getOrganisation(), getModule()); _con...
58,878
public Artifact[] getArtifacts(ModuleId moduleId, String conf, File cache) throws ParseException, IOException { File report = new File(cache, XmlReportOutputter.getReportFileName(moduleId, conf)); if (!report.exists()) { throw new IllegalStateException("no report file found for "+moduleId+"...
public Artifact[] getArtifacts(ModuleId moduleId, String conf, File cache) throws ParseException, IOException { File report = new File(cache, XmlReportOutputter.getReportFileName(moduleId, conf)); if (!report.exists()) { throw new IllegalStateException("no report file found for "+moduleId+"...
58,879
public static String substitute(String pattern, Artifact artifact) { return substitute(pattern, artifact, null); }
public static String substitute(String pattern, Artifact artifact) { return substitute(pattern, artifact, null); }
58,880
public void run() { // don't create gui controls if node creation has been stopped if (nodeCreator == null) return; addStatusButton(nci.statusButton); ConsoleInternalFrame frame = new ConsoleInternalFrame(nci.nodeName, ...
public void run() { // don't create gui controls if node creation has been stopped if (nodeCreator == null) return; addStatusButton(nci.statusButton); ConsoleInternalFrame frame = new ConsoleInternalFrame(nci.nodeName, ...
58,881
private void stopAllNodes() { // if there's a thread still creating nodes, stop it stopNodeCreation = true; // wait for the creating thread to stop if (nodeCreator != null) { try { nodeCreator.join(); } catch (InterruptedException ie) { if(log.isErrorEnabled()) { log.error...
private void stopAllNodes() { // if there's a thread still creating nodes, stop it stopNodeCreation = true; // wait for the creating thread to stop if (nodeCreator != null) { try { nodeCreator.join(); } catch (InterruptedException ie) { if(log.isErrorEnabled()) { log.error...
58,884
public JInternalFrame getInternalFrame() { return source; }
public JInternalFrame getInternalFrame() { return (JInternalFrame) source; }
58,885
public BufferedReader(Reader in, int size) { super(in.lock); this.in = in; buffer = new char[size]; }
public BufferedReader(Reader in) { super(in.lock); this.in = in; buffer = new char[size]; }
58,886
public BufferedReader(Reader in, int size) { super(in.lock); this.in = in; buffer = new char[size]; }
public BufferedReader(Reader in, int size) { super(in.lock); this.in = in; buffer = new char[size]; }
58,887
public void addNodeFrame(NodeComponent node, ConsoleNodeListener listener, InternalFrameListener frameListener, JComponent component) { JInternalFrame frame = new ConsoleInternalFrame(node, listener, component); frame.addIntern...
public void addNodeFrame(NodeComponent node, ConsoleNodeListener listener, InternalFrameListener frameListener, ConsoleTextPane pane) { JInternalFrame frame = new ConsoleInternalFrame(node, listener, component); frame.addIntern...
58,888
public void addNodeFrame(NodeComponent node, ConsoleNodeListener listener, InternalFrameListener frameListener, JComponent component) { JInternalFrame frame = new ConsoleInternalFrame(node, listener, component); frame.addIntern...
public void addNodeFrame(NodeComponent node, ConsoleNodeListener listener, InternalFrameListener frameListener, JComponent component) { JInternalFrame frame = new ConsoleInternalFrame(node, listener, pane); frame.addInternalFra...
58,889
public JRadioButton(String text) { this(text, null); }
public JRadioButton() { this(text, null); }
58,890
public JRadioButton(String text) { this(text, null); }
public JRadioButton(String text) { this(null, null); }
58,891
public ConsoleNodeOutputFilter(Frame parent, boolean[] initialValues, boolean acceptAll) { super(parent, "Filter", true); // modal dialog filterPanel = new JPanel(new BorderLayout()); // ok and cancel buttons panel JPanel buttonPanel = new JPanel(); JButton okButton = ne...
public ConsoleNodeOutputFilter(Frame parent, boolean[] initialValues, boolean acceptAll) { super(parent, "Filter", true); // modal dialog filterPanel = new JPanel(new BorderLayout()); // ok and cancel buttons panel JPanel buttonPanel = new JPanel(); JButton okButton = ne...
58,892
public ConsoleNodeOutputFilter(Frame parent, boolean[] initialValues, boolean acceptAll) { super(parent, "Filter", true); // modal dialog filterPanel = new JPanel(new BorderLayout()); // ok and cancel buttons panel JPanel buttonPanel = new JPanel(); JButton okButton = ne...
public ConsoleNodeOutputFilter(Frame parent, boolean[] initialValues, boolean acceptAll) { super(parent, "Filter", true); // modal dialog filterPanel = new JPanel(new BorderLayout()); // ok and cancel buttons panel JPanel buttonPanel = new JPanel(); JButton okButton = ne...
58,893
public ConsoleNodeOutputFilter(Frame parent, boolean[] initialValues, boolean acceptAll) { super(parent, "Filter", true); // modal dialog filterPanel = new JPanel(new BorderLayout()); // ok and cancel buttons panel JPanel buttonPanel = new JPanel(); JButton okButton = ne...
public ConsoleNodeOutputFilter(Frame parent, boolean[] initialValues, boolean acceptAll) { super(parent, "Filter", true); // modal dialog filterPanel = new JPanel(new BorderLayout()); // ok and cancel buttons panel JPanel buttonPanel = new JPanel(); JButton okButton = ne...
58,894
public ConsoleNodeOutputFilter(Frame parent, boolean[] initialValues, boolean acceptAll) { super(parent, "Filter", true); // modal dialog filterPanel = new JPanel(new BorderLayout()); // ok and cancel buttons panel JPanel buttonPanel = new JPanel(); JButton okButton = ne...
public ConsoleNodeOutputFilter(Frame parent, boolean[] initialValues, boolean acceptAll) { super(parent, "Filter", true); // modal dialog filterPanel = new JPanel(new BorderLayout()); // ok and cancel buttons panel JPanel buttonPanel = new JPanel(); JButton okButton = ne...
58,895
public ConsoleFontChooser() { // create a modal dialog super((java.awt.Frame)null, "Select Font", true); createLogger(); JPanel panel = new JPanel(new BorderLayout()); // define the gui here // apply and cancel buttons panel JPanel buttonPanel = new JPanel(); JButton applyButton = new JButton...
public ConsoleFontChooser() { // create a modal dialog super((java.awt.Frame)null, "Select Font", true); createLogger(); JPanel panel = new JPanel(new BorderLayout()); // define the gui here // apply and cancel buttons panel JPanel buttonPanel = new JPanel(); JButton applyButton = new JButton...
58,896
public JToggleButton(String text) { this(text, null, false); }
public JToggleButton() { this(text, null, false); }
58,897
public JToggleButton(String text) { this(text, null, false); }
public JToggleButton(String text) { this(null, null, false); }
58,898
public JProgressBar(int minimum, int maximum) { this(minimum, maximum, HORIZONTAL); }
public JProgressBar() { this(minimum, maximum, HORIZONTAL); }
58,899
public JProgressBar(int minimum, int maximum) { this(minimum, maximum, HORIZONTAL); }
public JProgressBar(int minimum, int maximum) { this(0, 100, HORIZONTAL); }
58,900
public synchronized static void setPage(URL url) { if (singleton == null) { singleton = new Browser(); } else { singleton.setState(JFrame.NORMAL); } singleton.setURL(url); }
public static synchronized void setPage(URL url) { if (singleton == null) { singleton = new Browser(); } else { singleton.setState(JFrame.NORMAL); } singleton.setURL(url); }
58,901
public void setText(String text) { if (text != labelText) { String oldText = labelText; labelText = text; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, labelText); if (labelText.length() <= underlinedChar) setDisplayedMnemonicIndex(labelText.length() - 1); } }
public void setText(String text) { if (text != labelText) { String oldText = labelText; labelText = text; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, labelText); if (labelText.length() <= underlinedChar) setDisplayedMnemonicIndex(labelText.length() - 1); } }
58,902
public void setStatus(int newStatus) { if (newStatus < 0 || newStatus > STATUS_MAX) return; // invalid status // if there's an error, add the warning icon if (newStatus == STATUS_NOTIFY || newStatus == STATUS_STD_ERROR) { URL iconURL = getClass().getResource("Bang.gif"); if (iconURL != null) {...
public void setStatus(int newStatus) { if (newStatus < 0 || newStatus > STATUS_MAX) return; // invalid status // if there's an error, add the warning icon if (newStatus == STATUS_NOTIFY || (newStatus == STATUS_STD_ERROR && notifyOnStandardError)) { URL iconURL = getClass().getResource("Bang.gif"); ...
58,903
public void setStatus(int newStatus) { if (newStatus < 0 || newStatus > STATUS_MAX) return; // invalid status // if there's an error, add the warning icon if (newStatus == STATUS_NOTIFY || newStatus == STATUS_STD_ERROR) { URL iconURL = getClass().getResource("Bang.gif"); if (iconURL != null) {...
public void setStatus(int newStatus) { if (newStatus < 0 || newStatus > STATUS_MAX) return; // invalid status // if there's an error, add the warning icon if (newStatus == STATUS_NOTIFY || newStatus == STATUS_STD_ERROR) { URL iconURL = getClass().getResource("Bang.gif"); if (iconURL != null) {...
58,904
/* package */ DelegatorGenerator(String className, Class[] interfaces, ClassLoader loader) { super(className, TYPE_OBJECT, loader); this.interfaces = interfaces; }
/* package */ DelegatorGenerator(String className, Class[] classes, ClassLoader loader, boolean bean) { super(className, TYPE_OBJECT, loader); this.interfaces = interfaces; }
58,905
/* package */ DelegatorGenerator(String className, Class[] interfaces, ClassLoader loader) { super(className, TYPE_OBJECT, loader); this.interfaces = interfaces; }
/* package */ DelegatorGenerator(String className, Class[] interfaces, ClassLoader loader) { super(className, TYPE_OBJECT, loader); this.classes = classes; this.bean = bean; }
58,906
charsWidth(char buf[], int offset, int len){ int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth(buf[i]); return(total_width);}
charsWidth(char buf[], int offset, int len){ int total_width = 0; for (int i = offset; i < len; i++) total_width += charWidth(buf[i]); return(total_width);}
58,907
getWidths(){ return(new int[256]);}
getWidths(){ return(new int[256]);}
58,908
FileDescriptor (String path, int mode) throws IOException { fd = open (path, mode); }
FileDescriptor (String path, int mode) throws FileNotFoundException { fd = open (path, mode); }
58,909
public void doTag(XMLOutput output) throws Exception { Process process = getCurrentProcess(); checkAttribute( "name", this.name ); this.state = process.addState( this.name, this.description ); invokeBody( output ); if...
public void doTag(XMLOutput output) throws Exception { Process process = getCurrentProcess(); checkAttribute( "name", this.name ); this.state = process.addState( this.name, this.description ); invokeBody( output ); if...
58,910
void log(Object objRef, int severity, String message);
void log(Object objRef, int severity, String message);
58,911
public ConsoleFontChooser() { // create a modal dialog super((java.awt.Frame)null, "Select Font", true); log = CSMART.createLogger("org.cougaar.tools.csmart.ui"); JPanel panel = new JPanel(new BorderLayout()); // define the gui here // apply and cancel buttons panel JPanel buttonPanel = new JPan...
public ConsoleFontChooser() { // create a modal dialog super((java.awt.Frame)null, "Select Font", true); createLogger(); JPanel panel = new JPanel(new BorderLayout()); // define the gui here // apply and cancel buttons panel JPanel buttonPanel = new JPanel(); JButton applyButton = new JButton(...
58,912
private String[] sendRequest(String url, String requestString) throws ClickatellException, IOException { String response = null; MessageFormat responseFormat = new MessageFormat("{0}: {1}"); List idList = new LinkedList(); // // Send request to clickatell // try ...
private String[] sendRequest(String url, String requestString) throws ClickatellException, IOException { String response = null; MessageFormat responseFormat = new MessageFormat("{0}: {1}"); List idList = new LinkedList(); // // Send request to clickatell // try ...
58,913
private String[] sendRequest(String url, String requestString) throws ClickatellException, IOException { String response = null; MessageFormat responseFormat = new MessageFormat("{0}: {1}"); List idList = new LinkedList(); // // Send request to clickatell // try ...
private String[] sendRequest(String url, String requestString) throws ClickatellException, IOException { String response = null; MessageFormat responseFormat = new MessageFormat("{0}: {1}"); List idList = new LinkedList(); // // Send request to clickatell // try ...
58,914
public byte[] getUserDataHeaders() { if ( myUdhElements == null) { return null; } ByteArrayOutputStream baos = new ByteArrayOutputStream(100); try { for(int i=0; i < myUdhElements.length; i++) { myUdhElements[i].writeTo(bao...
public byte[] getUserDataHeaders() { if ( myUdhElements == null) { return null; } ByteArrayOutputStream baos = new ByteArrayOutputStream(100); try { for(int i=0; i < myUdhElements.length; i++) { myUdhElements[i].writeTo(bao...
58,915
public MessageFormat (String pattern) { locale = Locale.getDefault(); applyPattern (pattern); }
private MessageFormat () { locale = Locale.getDefault(); applyPattern (pattern); }
58,916
public MessageFormat (String pattern) { locale = Locale.getDefault(); applyPattern (pattern); }
public MessageFormat (String pattern) { locale = Locale.getDefault(); applyPattern (pattern); }
58,917
public PrintWriter(OutputStream out) { super(); this.out = new OutputStreamWriter(out); this.lock = this.out; }
public PrintWriter(Writer wr) { super(); this.out = new OutputStreamWriter(out); this.lock = this.out; }
58,918
public PrintWriter(OutputStream out) { super(); this.out = new OutputStreamWriter(out); this.lock = this.out; }
public PrintWriter(OutputStream out) { super(); this.out = new OutputStreamWriter(out); this.lock = this.out; }
58,919
public Object[] parse (String sourceStr) throws ParseException { ParsePosition pp = new ParsePosition (0); Object[] r = parse (sourceStr, pp); if (r == null) throw new ParseException ("couldn't parse string", pp.getErrorIndex()); return r; }
public Object[] parse (String sourceStr, ParsePosition pos) { ParsePosition pp = new ParsePosition (0); Object[] r = parse (sourceStr, pp); if (r == null) throw new ParseException ("couldn't parse string", pp.getErrorIndex()); return r; }
58,920
public Object[] parse (String sourceStr) throws ParseException { ParsePosition pp = new ParsePosition (0); Object[] r = parse (sourceStr, pp); if (r == null) throw new ParseException ("couldn't parse string", pp.getErrorIndex()); return r; }
public Object[] parse (String sourceStr) throws ParseException { ParsePosition pp = new ParsePosition (0); Object[] r = parse (sourceStr, pp); if (r == null) throw new ParseException ("couldn't parse string", pp.getErrorIndex()); return r; }
58,921
ClickatellException(String theMsg, int theErrId) { super(theMsg); myErrId = theErrId; }
private ClickatellException() { super(theMsg); myErrId = theErrId; }
58,922
ClickatellException(String theMsg, int theErrId) { super(theMsg); myErrId = theErrId; }
ClickatellException(String theMsg, int theErrId) { super(theMsg); myErrId = theErrId; }
58,923
public WOComponent createGroup() { // This will be a peer of the session's default editingContext. EOEditingContext peer = ERXExtensions.newEditingContext(); EditPageInterface epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed("EditGroup", session()); epi.setObject(ERXUtili...
public WOComponent createGroup() { // This will be a peer of the session's default editingContext. EOEditingContext peer = ERXEC.newEditingContext(); EditPageInterface epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed("EditGroup", session()); epi.setObject(ERXUtilities.cre...
58,924
public WOComponent createUser() { // This will be a peer of the session's default editingContext. EOEditingContext peer = ERXExtensions.newEditingContext(); EditPageInterface epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed("EditUser", session()); epi.setObject(ERXUtiliti...
public WOComponent createUser() { // This will be a peer of the session's default editingContext. EOEditingContext peer = ERXEC.newEditingContext(); EditPageInterface epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed("EditUser", session()); epi.setObject(ERXUtilities.creat...
58,925
public WOComponent editMyInformation() { // This will be a peer of the session's default editingContext. EOEditingContext peer = ERXExtensions.newEditingContext(); EditPageInterface epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed("EditUser", session()); epi.setObject(ERX...
public WOComponent editMyInformation() { // This will be a peer of the session's default editingContext. EOEditingContext peer = ERXEC.newEditingContext(); EditPageInterface epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed("EditUser", session()); epi.setObject(ERXUtilitie...
58,926
private void validate(boolean transforming) { if (transforming && filter != null && !(filter instanceof CallbackFilter2)) { throw new IllegalStateException("CallbackFilter2 must be used when transforming"); } if ((classOnly || transforming) ^ (callbacks == null)) { if (cla...
private void validate(boolean transforming) { if (transforming && filter != null && !(filter instanceof CallbackFilter2)) { throw new IllegalStateException("CallbackFilter2 must be used when transforming"); } if ((classOnly || transforming) ^ (callbacks == null)) { if (cla...
58,927
public Source(String name, boolean useCache) { this.name = name; }
public Source(String name) { this.name = name; }
58,928
public static KeyFactory create(Class keyInterface, Customizer customizer) { Generator gen = new Generator(); gen.setInterface(keyInterface); gen.setCustomizer(customizer); return gen.create(); }
public static KeyFactory create(Class keyInterface, Customizer customizer) { Generator gen = new Generator(); gen.setInterface(keyInterface); gen.setCustomizer(customizer); return gen.create(); }
58,929
public static Signature parseConstructor(String sig) { return parseSignature("void <init>(" + sig + ")"); // TODO }
public static Signature parseConstructor(String sig) { return parseSignature("void <init>(" + sig + ")"); // TODO }
58,930
public static Signature parseSignature(String s) { int space = s.indexOf(' '); int lparen = s.indexOf('(', space); int rparen = s.indexOf(')', lparen); String returnType = s.substring(0, space); String methodName = s.substring(space + 1, lparen); StringBuffer sb = new Strin...
public static Signature parseSignature(String s) { int space = s.indexOf(' '); int lparen = s.indexOf('(', space); int rparen = s.indexOf(')', lparen); String returnType = s.substring(0, space); String methodName = s.substring(space + 1, lparen); StringBuffer sb = new Strin...
58,931
public static Object newInstance(Class type, Class[] parameterTypes, Object[] args) { return newInstance(getConstructor(type, parameterTypes), args); }
public static Object newInstance(Class type, Class[] parameterTypes, Object[] args) { return newInstance(getConstructor(type, parameterTypes), args); }
58,932
public CodeEmitter begin_method(int access, Signature sig, Type[] exceptions) { CodeVisitor v = cv.visitMethod(access, sig.getName(), sig.getDescriptor(), TypeUtils.toInternalNames(exceptions)); ...
public CodeEmitter begin_method(int access, Signature sig, Type[] exceptions) { CodeVisitor v = cv.visitMethod(access, sig.getName(), sig.getDescriptor(), TypeUtils.toInternalNames(exceptions)); ...
58,933
public CodeEmitter begin_method(int access, Signature sig, Type[] exceptions) { CodeVisitor v = cv.visitMethod(access, sig.getName(), sig.getDescriptor(), TypeUtils.toInternalNames(exceptions)); ...
public CodeEmitter begin_method(int access, Signature sig, Type[] exceptions) { CodeVisitor v = cv.visitMethod(access, sig.getName(), sig.getDescriptor(), TypeUtils.toInternalNames(exceptions)); ...
58,934
public void store_local(Local local) { store_local(local.getType(), local.getIndex()); }
public void store_local(Local local) { store_local(local.getType(), local.getIndex()); }
58,935
public void load_local(Local local) { load_local(local.getType(), local.getIndex()); }
public void load_local(Local local) { load_local(local.getType(), local.getIndex()); }
58,936
public void super_invoke_constructor(Signature sig) { invoke_constructor(ce.getSuperType(), sig); }
public void super_invoke_constructor(Signature sig) { invoke_constructor(ce.getSuperType(), sig); }
58,937
public void newarray(Type type) { if (TypeUtils.isPrimitive(type)) { cv.visitIntInsn(Constants.NEWARRAY, TypeUtils.NEWARRAY(type)); } else { emit_type(Constants.ANEWARRAY, type); } }
public void newarray(Type type) { if (TypeUtils.isPrimitive(type)) { cv.visitIntInsn(Constants.NEWARRAY, TypeUtils.NEWARRAY(type)); } else { emit_type(Constants.ANEWARRAY, type); } }
58,938
public CodeEmitter getStaticHook() { if (!useHook || TypeUtils.isInterface(access)) { throw new IllegalStateException("static hook is invalid for this class"); } if (hook == null) { hook = rec.begin_method(Constants.ACC_STATIC, STATIC_HOOK, null); hook.setStati...
public CodeEmitter getStaticHook() { if (!useHook || TypeUtils.isInterface(access)) { throw new IllegalStateException("static hook is invalid for this class"); } if (hook == null) { hook = rec.begin_method(Constants.ACC_STATIC, STATIC_HOOK, null); hook.setStati...
58,939
public void invoke_constructor(Type type, Signature sig) { emit_invoke(Constants.INVOKESPECIAL, type, sig); }
public void invoke_constructor(Type type, Signature sig) { emit_invoke(Constants.INVOKESPECIAL, type, sig); }
58,940
public ClassEmitter(ClassVisitor cv) { super(null); setTarget(cv); }
public ClassEmitter(ClassVisitor cv) { super(null); setTarget(cv, this); }
58,941
public void end_class() { if (useHook && !TypeUtils.isInterface(access)) { if (hook != null && !seenStatic) { CodeEmitter e = begin_static(); e.return_value(); e.end_method(); } if (seenStatic) { getStaticHook(); // ...
public void end_class() { if (useHook && !TypeUtils.isInterface(access)) { if (hook != null && !seenStatic) { CodeEmitter e = begin_static(); e.return_value(); e.end_method(); } if (seenStatic) { getStaticHook(); // ...
58,942
public void end_class() { if (useHook && !TypeUtils.isInterface(access)) { if (hook != null && !seenStatic) { CodeEmitter e = begin_static(); e.return_value(); e.end_method(); } if (seenStatic) { getStaticHook(); // ...
public void end_class() { if (useHook && !TypeUtils.isInterface(access)) { if (hook != null && !seenStatic) { CodeEmitter e = begin_static(); e.return_value(); e.end_method(); } if (seenStatic) { getStaticHook(); // ...
58,943
public void end_class() { if (useHook && !TypeUtils.isInterface(access)) { if (hook != null && !seenStatic) { CodeEmitter e = begin_static(); e.return_value(); e.end_method(); } if (seenStatic) { getStaticHook(); // ...
public void end_class() { if (useHook && !TypeUtils.isInterface(access)) { if (hook != null && !seenStatic) { CodeEmitter e = begin_static(); e.return_value(); e.end_method(); } if (seenStatic) { getStaticHook(); // ...
58,944
private void addAssetData() { BaseComponent asset = (BaseComponent)new AssetFileComponent(filename, getShortName()); asset.initProperties(); addChild(asset); }
protected void addAssetData() { BaseComponent asset = (BaseComponent)new AssetFileComponent(filename, getShortName()); asset.initProperties(); addChild(asset); }
58,945
private void addPlugins() { ContainerBase container = new ContainerBase("Plugins"); container.initProperties(); addChild(container); if(log.isDebugEnabled()) { log.debug("Parse: " + filename); } ComponentDescription[] desc = ComponentConnector.parseFile(filename); for (int i=0; i < des...
protected void addPlugins() { ContainerBase container = new ContainerBase("Plugins"); container.initProperties(); addChild(container); if(log.isDebugEnabled()) { log.debug("Parse: " + filename); } ComponentDescription[] desc = ComponentConnector.parseFile(filename); for (int i=0; i < d...
58,946
public AgentBase(String name) { this(name, AgentBase.DEFAULT_CLASS); }
public AgentBase(String name) { this(name, AgentBase.DEFAULT_CLASS); }
58,947
public static ComponentDescription[] parseFile(String filename) { ComponentDescription[] desc = null; String containerInsertionPoint = ""; Logger log = CSMART.createLogger("org.cougaar.tools.csmart.core.cdata.ComponentConnector"); if(!filename.endsWith(".ini")) { filename = filename + ".ini"; ...
public static ComponentDescription[] parseFile(String filename) { ComponentDescription[] desc = null; Logger log = CSMART.createLogger("org.cougaar.tools.csmart.core.cdata.ComponentConnector"); if(!filename.endsWith(".ini")) { filename = filename + ".ini"; } if(log.isDebugEnabled()) { ...
58,948
public static ComponentDescription[] parseFile(String filename) { ComponentDescription[] desc = null; String containerInsertionPoint = ""; Logger log = CSMART.createLogger("org.cougaar.tools.csmart.core.cdata.ComponentConnector"); if(!filename.endsWith(".ini")) { filename = filename + ".ini"; ...
public static ComponentDescription[] parseFile(String filename) { ComponentDescription[] desc = null; String containerInsertionPoint = ""; Logger log = CSMART.createLogger("org.cougaar.tools.csmart.core.cdata.ComponentConnector"); if(!filename.endsWith(".ini")) { filename = filename + ".ini"; ...
58,949
public BinderBase(String name, String classname) { super(name); this.classname = classname; createLogger(); }
public BinderBase(String name) { super(name); this.classname = classname; createLogger(); }
58,950
public BinderBase(String name, String classname) { super(name); this.classname = classname; createLogger(); }
public BinderBase(String name, String classname) { super(name); createLogger(); }
58,951