rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
currentSig = sig; methodAccess = access; methodName = sig.getName(); returnType = sig.getReturnType(); argumentTypes = sig.getArgumentTypes(); localOffset = TypeUtils.isStatic(access) ? 0 : 1; remap.clear(); firstLocal = nextLocal = localOffset + getStackSize(argumentTypes); codev = classv.visitMethod(access, methodNa... | curMethod = new EmitterMethod(classv, access, sig, exceptions); codev = curMethod.getRaw(); return curMethod; | public CodeVisitor begin_method(int access, Signature sig, Type[] exceptions) { closeMethod(); currentSig = sig; methodAccess = access; methodName = sig.getName(); returnType = sig.getReturnType(); argumentTypes = sig.getArgumentTypes(); localOffset = TypeUtils.isSta... |
if (codev != null) { if (!TypeUtils.isAbstract(methodAccess)) { codev.visitMaxs(0, 0); } if (curBlock != null) { throw new IllegalStateException("unclosed exception block"); } | if (curBlock != null) { throw new IllegalStateException("unclosed exception block"); } if (curMethod != null) { curMethod.close(); curMethod = null; | private void closeMethod() { if (codev != null) { if (!TypeUtils.isAbstract(methodAccess)) { codev.visitMaxs(0, 0); } if (curBlock != null) { throw new IllegalStateException("unclosed exception block"); } codev =... |
push(argumentTypes.length); | Type[] args = curMethod.getArgumentTypes(); push(args.length); | public void create_arg_array() { /* generates: Object[] args = new Object[]{ arg1, new Integer(arg2) }; */ push(argumentTypes.length); newarray(); for (int i = 0; i < argumentTypes.length; i++) { dup(); push(i); load_arg(i); b... |
for (int i = 0; i < argumentTypes.length; i++) { | for (int i = 0; i < args.length; i++) { | public void create_arg_array() { /* generates: Object[] args = new Object[]{ arg1, new Integer(arg2) }; */ push(argumentTypes.length); newarray(); for (int i = 0; i < argumentTypes.length; i++) { dup(); push(i); load_arg(i); b... |
box(argumentTypes[i]); | box(args[i]); | public void create_arg_array() { /* generates: Object[] args = new Object[]{ arg1, new Integer(arg2) }; */ push(argumentTypes.length); newarray(); for (int i = 0; i < argumentTypes.length; i++) { dup(); push(i); load_arg(i); b... |
return returnType; | return curMethod.getReturnType(); | public Type getReturnType() { return returnType; } |
load_local(argumentTypes[index], localOffset + skipArgs(index)); | load_local(curMethod.getArgumentTypes()[index], curMethod.getLocalOffset() + skipArgs(index)); | public void load_arg(int index) { load_local(argumentTypes[index], localOffset + skipArgs(index)); } |
load_args(0, argumentTypes.length); | load_args(0, curMethod.getArgumentTypes().length); | public void load_args() { load_args(0, argumentTypes.length); } |
public void load_local(Local local) { load_local(local.getType(), local.getIndex()); | private void load_local(Type t, int pos) { codev.visitVarInsn(t.getOpcode(Constants.ILOAD), pos); | public void load_local(Local local) { load_local(local.getType(), local.getIndex()); } |
if (TypeUtils.isStatic(methodAccess)) { | if (TypeUtils.isStatic(curMethod.getAccess())) { | public void load_this() { if (TypeUtils.isStatic(methodAccess)) { throw new IllegalStateException("no 'this' pointer within static method"); } codev.visitVarInsn(Constants.ALOAD, 0); } |
public Local make_local(Type type) { Local local = new Local(nextLocal, type); nextLocal += type.getSize(); return local; | public Local make_local() { return make_local(Constants.TYPE_OBJECT); | public Local make_local(Type type) { Local local = new Local(nextLocal, type); nextLocal += type.getSize(); return local; } |
codev.visitInsn(returnType.getOpcode(Constants.IRETURN)); | codev.visitInsn(getReturnType().getOpcode(Constants.IRETURN)); | public void return_value() { codev.visitInsn(returnType.getOpcode(Constants.IRETURN)); } |
amount += argumentTypes[i].getSize(); | amount += args[i].getSize(); | private int skipArgs(int numArgs) { int amount = 0; for (int i = 0; i < numArgs; i++) { amount += argumentTypes[i].getSize(); } return amount; } |
public void store_local(Local local) { store_local(local.getType(), local.getIndex()); | private void store_local(Type t, int pos) { codev.visitVarInsn(t.getOpcode(Constants.ISTORE), pos); | public void store_local(Local local) { store_local(local.getType(), local.getIndex()); } |
super_invoke(currentSig); | super_invoke(curMethod.getSignature()); | public void super_invoke() { super_invoke(currentSig); } |
Guard guard, | Transition(State origin, State destination, Guard guard, String description) { this.origin = origin; this.destination = destination; this.guard = guard; this.description = description; } | |
this.origin = origin; this.destination = destination; this.guard = guard; this.description = description; | this( origin, destination, null, description ); | Transition(State origin, State destination, Guard guard, String description) { this.origin = origin; this.destination = destination; this.guard = guard; this.description = description; } |
void check(Context context) throws InvalidMotionException, ActivityException, NoTransitionException | void check(Context context) throws InvalidMotionException, ActivityException | void check(Context context) throws InvalidMotionException, ActivityException, NoTransitionException { // no-op } |
String fieldName = "CGLIB$load_class$" + type.getClassName().replace('.', '_'); | String typeName = TypeUtils.emulateClassGetName(type); String fieldName = getFieldName(typeName); | private static void load_class_helper(CodeEmitter e, final Type type) { if (e.isStaticHook()) { // have to fall back on non-optimized load e.push(TypeUtils.emulateClassGetName(type)); e.invoke_static(Constants.TYPE_CLASS, FOR_NAME); } else { ClassEmitter ce ... |
hook.push(TypeUtils.emulateClassGetName(type)); | hook.push(typeName); | private static void load_class_helper(CodeEmitter e, final Type type) { if (e.isStaticHook()) { // have to fall back on non-optimized load e.push(TypeUtils.emulateClassGetName(type)); e.invoke_static(Constants.TYPE_CLASS, FOR_NAME); } else { ClassEmitter ce ... |
Object newInstance(MethodInterceptor ih); | Object newInstance(Callback callback); | Object newInstance(MethodInterceptor ih); |
this.initializeFrameworkFromSystemProperties (); | public void finishInitialization () { this.initializeFrameworkFromSystemProperties (); Perl5Compiler compiler = new Perl5Compiler (); _matcher = new Perl5Matcher (); try { _pattern = compiler.compile (EMAIL_VALIDATION_PATTERN); } catch (MalformedPatternException e) { throw new RuntimeException ("The compilati... | |
log.info ("ERJavaMail: finishInitialization"); | this.initializeFrameworkFromSystemProperties (); log.info ("ERJavaMail: finished initialization"); | public void finishInitialization () { this.initializeFrameworkFromSystemProperties (); Perl5Compiler compiler = new Perl5Compiler (); _matcher = new Perl5Matcher (); try { _pattern = compiler.compile (EMAIL_VALIDATION_PATTERN); } catch (MalformedPatternException e) { throw new RuntimeException ("The compilati... |
WOApplication.ApplicationWillFinishLaunchingNotification, | ERXApplication.ApplicationDidCreateNotification, | public static void setUpFrameworkPrincipalClass(Class c) { try { NSLog.debug.appendln("Loaded items: " + initializedFrameworks); if(observer == null) { observer = new Observer(); NSNotificationCenter center = NSNotificationCenter.defaultCenter(); ... |
insets = new Insets (0, 0, 0, 0); | public GtkContainerPeer(Container c) { super (c); this.c = c; insets = new Insets (0, 0, 0, 0); } | |
rule = new ProcessingInstructionRule(); | rule = new XmlSchemaRule(); | public void configure(Configuration configuration) throws ConfigurationException { name = configuration.getAttribute("name"); Configuration[] ruleConfs = configuration.getChildren(); for (int i = 0; i < ruleConfs.length; i++) { SourceTypeRule rule; if (ruleConfs[... |
String agentName = (String)agentNames.get(e.getLastIndex()); displayPlugins(agentName); | JList agentsList = (JList)e.getSource(); String agentName = (String)agentsList.getSelectedValue(); if (agentName != null) displayPlugins(agentName); | public void displayAbout() { final ArrayList agentNames = (ArrayList)getPropertyValue(node, "AgentNames"); JPanel aboutPanel = new JPanel(); aboutPanel.setLayout(new GridBagLayout()); int x = 0; int y = 0; // insets are top, left, bottom, right aboutPanel.add(new JLabel("Status:"), ... |
String agentName = (String)agentNames.get(e.getLastIndex()); displayPlugins(agentName); | JList agentsList = (JList)e.getSource(); String agentName = (String)agentsList.getSelectedValue(); if (agentName != null) displayPlugins(agentName); | public void valueChanged(ListSelectionEvent e) { if (e.getValueIsAdjusting()) return; // Does getLastIndex always show later in the list, so // that if you change selection to something earlier in the list, // you wont see the new selection? String agentName = (String)agentNames.get(e.getLa... |
public DefaultTableModel(Vector data, Vector columnNames) { setDataVector(data, columnNames); | public DefaultTableModel() { this(0, 0); | public DefaultTableModel(Vector data, Vector columnNames) { setDataVector(data, columnNames); } // DefaultTableModel() |
public JTable (TableModel dm) | public JTable () | public JTable (TableModel dm) { throw new Error ("Not implemented"); } |
return worker(s, doc.getStartPosition(), true); | if (searchPosition == null) return worker(s, doc.getStartPosition(), true); else return worker(s, searchPosition, true); | public boolean search(String s) { searchString = s; return worker(s, doc.getStartPosition(), true); } |
return currentViewSize; | return -2; | static int displayViewSizeDialog(int currentViewSize) { JPanel bufferEventsPanel = new JPanel(); JRadioButton allButton = new JRadioButton("All"); JRadioButton sizeButton = new JRadioButton("Buffer Size"); JTextField sizeTF = new JTextField(8); Logger log = CSMART.createLogger("org.cougaar.tools.csmart... |
public OutputStreamWriter(OutputStream out, String enc) throws UnsupportedEncodingException | private OutputStreamWriter(OutputStream out, UnicodeToBytes encoder) | public OutputStreamWriter(OutputStream out, String enc) throws UnsupportedEncodingException { this(out, UnicodeToBytes.getEncoder(enc)); } |
this(out, UnicodeToBytes.getEncoder(enc)); | super((this.out = (out instanceof BufferedOutputStream ? (BufferedOutputStream) out : new BufferedOutputStream(out, 250)))); this.converter = encoder; | public OutputStreamWriter(OutputStream out, String enc) throws UnsupportedEncodingException { this(out, UnicodeToBytes.getEncoder(enc)); } |
public boolean existsAgent(ClusterIdentifier agcid) { return agents.contains(new Agent(agcid)); | public boolean existsAgent(String ag) { return agents.contains(new Agent(ag)); | public boolean existsAgent(ClusterIdentifier agcid) { // Agents are the same if their ClusterIdentifiers are the same //return (getAgent(agcid) != null); return agents.contains(new Agent(agcid)); } |
public ArgValue(String pair, String sep) { if (pair == null || sep == null) { | public ArgValue(String arg, Object value) { if (arg == null) { | public ArgValue(String pair, String sep) { // the pair must be split on sep to produce arg and value if (pair == null || sep == null) { // error! throw new IllegalArgumentException("Can't parse with null Strings"); } int start = pair.indexOf(sep); if (start < 1) { // error! thro... |
throw new IllegalArgumentException("Can't parse with null Strings"); } int start = pair.indexOf(sep); if (start < 1) { throw new IllegalArgumentException("Separator not found, or null Argument"); } int stop = start + sep.length(); this.arg = pair.substring(0, start); if (this.arg == null) { | public ArgValue(String pair, String sep) { // the pair must be split on sep to produce arg and value if (pair == null || sep == null) { // error! throw new IllegalArgumentException("Can't parse with null Strings"); } int start = pair.indexOf(sep); if (start < 1) { // error! thro... | |
this.value = pair.substring(stop, pair.length()); | this.arg = arg; this.value = value; | public ArgValue(String pair, String sep) { // the pair must be split on sep to produce arg and value if (pair == null || sep == null) { // error! throw new IllegalArgumentException("Can't parse with null Strings"); } int start = pair.indexOf(sep); if (start < 1) { // error! thro... |
public TestInterceptor() { | public TestInterceptor(String ser) { value = ser; | public TestInterceptor() { } |
public ABCSociety(String name) { super(name); Constants.Role.init(); | public ABCSociety() { this("ABC Society"); | public ABCSociety(String name) { super(name); // Init the CSMART Constants file to get Roles Constants.Role.init(); } |
public String getClassName(); | String getClassName(); | public String getClassName(); |
public LeafComponentData[] getLeafComponents(); | LeafComponentData[] getLeafComponents(); | public LeafComponentData[] getLeafComponents(); |
public Object[] getParameters(); | Object[] getParameters(); | public Object[] getParameters(); |
public ComponentData getParent(); | ComponentData getParent(); | public ComponentData getParent(); |
public TimePhasedData[] getTimePhasedData(); | TimePhasedData[] getTimePhasedData(); | public TimePhasedData[] getTimePhasedData(); |
public int leafCount(); | int leafCount(); | public int leafCount(); |
public int parameterCount(); | int parameterCount(); | public int parameterCount(); |
public void setChild(int index, ComponentData child); | void setChild(int index, ComponentData child); | public void setChild(int index, ComponentData child); |
public void setChildren(ComponentData[] child); | void setChildren(ComponentData[] child); | public void setChildren(ComponentData[] child); |
public void setLeafComponent(int index, LeafComponentData leaf); | void setLeafComponent(int index, LeafComponentData leaf); | public void setLeafComponent(int index, LeafComponentData leaf); |
public void setLeafComponents(LeafComponentData[] leaves); | void setLeafComponents(LeafComponentData[] leaves); | public void setLeafComponents(LeafComponentData[] leaves); |
public void setParameters(Object[] params); | void setParameters(Object[] params); | public void setParameters(Object[] params); |
public void setTimePhasedData(TimePhasedData[] data); | void setTimePhasedData(TimePhasedData[] data); | public void setTimePhasedData(TimePhasedData[] data); |
public int timePhasedCount(); | int timePhasedCount(); | public int timePhasedCount(); |
Component[] list = getComponents(); if ((list != null) && (list.length > 0)) { Dimension dim = list[0].getPreferredSize(); Dimension vp = getViewportSize (); if (dim.width < vp.width) dim.width = vp.width; if (dim.height < vp.height) dim.height = vp.height; ScrollPanePeer peer = (ScrollPanePeer) getPeer (); if (peer... | layout (); | doLayout(){ Component[] list = getComponents(); if ((list != null) && (list.length > 0)) { Dimension dim = list[0].getPreferredSize(); Dimension vp = getViewportSize (); if (dim.width < vp.width) dim.width = vp.width; if (dim.height < vp.height) dim.height = vp.height; ScrollPanePeer peer ... |
doLayout(); | Component[] list = getComponents (); if ((list != null) && (list.length > 0)) { Dimension dim = list[0].getPreferredSize (); Dimension vp = getViewportSize (); if (dim.width < vp.width) dim.width = vp.width; if (dim.height < vp.height) dim.height = vp.height; ScrollPanePeer peer = (ScrollPanePeer) getPeer (); if (pe... | layout(){ doLayout();} |
super(pass); | this.pass = pass; | public ClassFilterTransformer(ClassFilter filter, ClassTransformer pass) { super(pass); this.filter = filter; } |
init_properties (); | if (properties == null) init_properties (); | public static Properties getProperties () { if (secman != null) secman.checkPropertiesAccess(); init_properties (); return properties; } |
if(log.isDebugEnabled()) { log.debug("log4j.loggerFactory: " + System.getProperty("log4j.loggerFactory")); log.debug("Factory: " + factory); log.debug("", new RuntimeException()); } | public static synchronized void configureLogging(Properties properties) { if (_isFirstTimeConfig) { BasicConfigurator.configure(); Logger.getRootLogger().setLevel(Level.INFO); _isFirstTimeConfig = false; } PropertyConfigurator.configure(properties); ... | |
public static NSDictionary arrayGroupedByKeyPath(NSArray eos, String keyPath, boolean includeNulls, String extraKeyPathForValues) { NSMutableDictionary result=new NSMutableDictionary(); for (Enumeration e=eos.objectEnumerator(); e.hasMoreElements();) { Object eo = e.nextElement(); Object key = NSKeyValueCodingAdditions... | public static NSDictionary arrayGroupedByKeyPath(NSArray objects, String keyPath) { return arrayGroupedByKeyPath(objects,keyPath,true,null); | public static NSDictionary arrayGroupedByKeyPath(NSArray eos, String keyPath, boolean includeNulls, String extraKeyPathForValues) { NSMutableDictionary r... |
public static NSArray flatten(NSArray originalArray) { if (originalArray == null || originalArray.count() < 1) { return originalArray; | public static NSArray flatten(NSArray originalArray, boolean filterDuplicates) { NSArray flattenedArray = flatten(originalArray); if (filterDuplicates) { return arrayWithoutDuplicates(flattenedArray); } else { return flattenedArray; | public static NSArray flatten(NSArray originalArray) { if (originalArray == null || originalArray.count() < 1) { return originalArray; } NSMutableArray newArray = null; // Not gonna create a new array if we don't actually need to flatten for (int i = 0; i < originalAr... |
NSMutableArray newArray = null; for (int i = 0; i < originalArray.count(); i++) { Object element = originalArray.objectAtIndex(i); if (element instanceof NSArray) { if (newArray == null) { newArray = new NSMutableArray(); for (int backfillIndex = 0; backfillIndex < i; backfillIndex++) { newArray.addObject(originalArr... | public static NSArray flatten(NSArray originalArray) { if (originalArray == null || originalArray.count() < 1) { return originalArray; } NSMutableArray newArray = null; // Not gonna create a new array if we don't actually need to flatten for (int i = 0; i < originalAr... | |
throw ite.getTargetException(); | throw new NSForwardException(ite.getTargetException()); | public final WOComponent nextPage(WOComponent sender) { WOComponent nextPage = null; if (sender instanceof ERDBranchInterface) { String branchName = ((ERDBranchInterface)sender).branchName(); if (log.isDebugEnabled()) log.debug("Branching to branch: " + branchName)... |
throw e; | throw new NSForwardException(e); | public final WOComponent nextPage(WOComponent sender) { WOComponent nextPage = null; if (sender instanceof ERDBranchInterface) { String branchName = ((ERDBranchInterface)sender).branchName(); if (log.isDebugEnabled()) log.debug("Branching to branch: " + branchName)... |
organizer.saveExperiment(); } | organizer.startConsole(); } | public void actionPerformed(ActionEvent e) { organizer.saveExperiment(); } |
organizer.renameExperiment(); } | organizer.saveExperiment(); } | public void actionPerformed(ActionEvent e) { organizer.renameExperiment(); } |
organizer.startBuilder(); | organizer.deleteExperiment(); | public void actionPerformed(ActionEvent e) { organizer.startBuilder(); } |
organizer.deleteRecipe(); | organizer.renameExperiment(); | public void actionPerformed(ActionEvent e) { organizer.deleteRecipe(); } |
organizer.renameRecipe(); | organizer.startBuilder(); | public void actionPerformed(ActionEvent e) { organizer.renameRecipe(); } |
organizer.saveRecipe(); | organizer.deleteRecipe(); | public void actionPerformed(ActionEvent e) { organizer.saveRecipe(); } |
organizer.renameFolder(); | organizer.saveRecipe(); | public void actionPerformed(ActionEvent e) { organizer.renameFolder(); } |
organizer.deleteSociety(); } | organizer.deleteFolder(); } | public void actionPerformed(ActionEvent e) { organizer.deleteSociety(); } |
organizer.newSociety(); } | organizer.createExperimentFromFile(); } | public void actionPerformed(ActionEvent e) { organizer.newSociety(); } |
organizer.renameSociety(); } | organizer.renameFolder(); } | public void actionPerformed(ActionEvent e) { organizer.renameSociety(); } |
organizer.saveSociety(); | organizer.deleteSociety(); | public void actionPerformed(ActionEvent e) { organizer.saveSociety(); } |
organizer.newRecipe(); } | organizer.saveSociety(); } | public void actionPerformed(ActionEvent e) { organizer.newRecipe(); } |
organizer.newFolder(); } | organizer.createExperimentFromUI(); } | public void actionPerformed(ActionEvent e) { organizer.newFolder(); } |
organizer.renameWorkspace(); } | organizer.newSociety(); } | public void actionPerformed(ActionEvent e) { organizer.renameWorkspace(); } |
organizer.deleteExperimentFromDatabase(); } | organizer.newFolder(); } | public void actionPerformed(ActionEvent e) { organizer.deleteExperimentFromDatabase(); } |
organizer.deleteRecipeFromDatabase(); } | organizer.renameWorkspace(); } | public void actionPerformed(ActionEvent e) { organizer.deleteRecipeFromDatabase(); } |
organizer.startExperimentBuilder(); } | organizer.deleteExperimentFromDatabase(); } | public void actionPerformed(ActionEvent e) { organizer.startExperimentBuilder(); } |
organizer.startConsole(); } | organizer.deleteRecipeFromDatabase(); } | public void actionPerformed(ActionEvent e) { organizer.startConsole(); } |
organizer.duplicate(); | organizer.startExperimentBuilder(); | public void actionPerformed(ActionEvent e) { organizer.duplicate(); } |
for (int i = 0; i < newExperimentActions.length; i++) newExperimentMenu.add(newExperimentActions[i]); | public OrganizerMouseListener(Organizer organizer, OrganizerTree workspace) { this.organizer = organizer; this.workspace = workspace; // newSocietyAction.setEnabled(false); // disable creating builtin societies // set up recipe submenus for (int i = 0; i < newRecipeAct... | |
generateNewInstanceHelper(NEW_INSTANCE_HACK, true); | protected void generate() { generateNullConstructor(); generateNewInstanceHelper(NEW_INSTANCE, false); generateNewInstanceHelper(NEW_INSTANCE_HACK, true); if (newInstance != null) { declare_interface(newInstance.getDeclaringClass()); begi... | |
int stop = isHack ? types.length - 1 : types.length; for (int i = 0; i < stop; i++) { | for (int i = 0; i < types.length; i++) { | private void generateNewInstanceHelper(Method method, boolean isHack) { begin_method(method); new_instance(constructor.getDeclaringClass()); dup(); Class types[] = constructor.getParameterTypes(); int stop = isHack ? types.length - 1 : types.length; ... |
if (isHack) { load_arg(1); unbox(types[stop]); } | private void generateNewInstanceHelper(Method method, boolean isHack) { begin_method(method); new_instance(constructor.getDeclaringClass()); dup(); Class types[] = constructor.getParameterTypes(); int stop = isHack ? types.length - 1 : types.length; ... | |
protected void aaload() { append( new AALOAD() ); | protected void aaload( int index ){ push(index); aaload(); | protected void aaload() { append( new AALOAD() ); } |
return new HashSet(_dependencies.values()); | return new LinkedHashSet(_dependencies.values()); | private Collection getDependencies() { return new HashSet(_dependencies.values()); } |
Set mrids = new HashSet(); | Set mrids = new LinkedHashSet(); | public Set getModuleRevisionIds() { Set mrids = new HashSet(); for (Iterator iter = getDependencies().iterator(); iter.hasNext();) { IvyNode node = (IvyNode) iter.next(); if (!node.isEvicted(getConfiguration()) && !node.hasProblem()) { mrids.add(node.getResolvedId()); } } ... |
nativeCreate (old_group); | currentState = ((Checkbox)awtComponent).getState(); nativeCreate (old_group, currentState); | public void create () { CheckboxGroup g = ((Checkbox) awtComponent).getCheckboxGroup (); old_group = GtkCheckboxGroupPeer.getCheckboxGroupPeer (g); nativeCreate (old_group); } |
super.postItemEvent (awtComponent, stateChange); | Checkbox currentCheckBox = ((Checkbox)awtComponent); if (( !currentCheckBox.getState() && stateChange == 1) || (currentCheckBox.getState() && stateChange == 2)) { super.postItemEvent (awtComponent, stateChange); currentState = !currentCheckBox.getState(); currentCheckBox.setState(currentState); } | public void postItemEvent (Object item, int stateChange) { super.postItemEvent (awtComponent, stateChange); } |
set ("active", state); | if (currentState != state) set ("active", state); | public void setState (boolean state) { set ("active", state); } |
if (awtComponent.getForeground () == null) awtComponent.setForeground (getForeground ()); if (awtComponent.getBackground () == null) awtComponent.setBackground (getBackground ()); | if (awtComponent.getForeground () != null) setForeground (awtComponent.getForeground ()); if (awtComponent.getBackground () != null) setBackground (awtComponent.getBackground ()); | protected GtkComponentPeer (Component awtComponent) { super (awtComponent); this.awtComponent = awtComponent; /* temporary try/catch block until all peers use this creation method */ try { create (); GtkArgList args = new GtkArgList (); getArgs (awtComponent, args); args.setArgs... |
assert("Test endsWith()", tst.endsWith(new SimpleName(name))); assert("Test endsWith()", !tst.endsWith(new SimpleMulti(name))); | assertTrue("Test endsWith()", tst.endsWith(new SimpleName(name))); assertTrue("Test endsWith()", !tst.endsWith(new SimpleMulti(name))); | public void testEndsWith() { assert("Test endsWith()", tst.endsWith(new SimpleName(name))); assert("Test endsWith()", !tst.endsWith(new SimpleMulti(name))); } |
assert("Test equals()", tst.equals(new SimpleName(name))); | assertTrue("Test equals()", tst.equals(new SimpleName(name))); | public void testEquals() { assert("Test equals()", tst.equals(new SimpleName(name))); } public void testCompareTo() { assert("Test compareTo()", (tst.compareTo(new SimpleName(name)) == 0)); assert("Test compareTo()", (tst.compareTo(new SimpleMulti(name)) > 0)); assert("Test compareTo()", (tst.compareTo(... |
public void testCompareTo() { assert("Test compareTo()", (tst.compareTo(new SimpleName(name)) == 0)); assert("Test compareTo()", (tst.compareTo(new SimpleMulti(name)) > 0)); assert("Test compareTo()", (tst.compareTo(new SimpleName("a")) < 0)); } public static Test suite() { return new TestSuite(SimpleNameTest.class); ... | public void testEquals() { assert("Test equals()", tst.equals(new SimpleName(name))); } public void testCompareTo() { assert("Test compareTo()", (tst.compareTo(new SimpleName(name)) == 0)); assert("Test compareTo()", (tst.compareTo(new SimpleMulti(name)) > 0)); assert("Test compareTo()", (tst.compareTo(... | |
assert("Test startsWith()", tst.startsWith(new SimpleName(name))); assert("Test startsWith()", !tst.startsWith(new SimpleMulti(name))); | assertTrue("Test startsWith()", tst.startsWith(new SimpleName(name))); assertTrue("Test startsWith()", !tst.startsWith(new SimpleMulti(name))); | public void testStartsWith() { assert("Test startsWith()", tst.startsWith(new SimpleName(name))); assert("Test startsWith()", !tst.startsWith(new SimpleMulti(name))); } |
decache(); | public void setName(SimpleName newName) { sname = newName; } | |
decache(); | public void setComponent(BaseComponent cc) { component = cc; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.