buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
protected void handleChildren(Object parent,
RuntimeConfigurable parentWrapper)
throws BuildException {
if (parent instanceof TaskAdapter) {
parent = ((TaskAdapter) parent).getProxy();
}
Class parentClass = parent.getClass();
I... | protected void handleChildren(Object parent,
RuntimeConfigurable parentWrapper)
throws BuildException {
if (parent instanceof TaskAdapter) {
parent = ((TaskAdapter) parent).getProxy();
}
Class parentClass = parent.getClass();
I... |
public static int[] RYTable, GYTable, BYTable,
RCbTable, GCbTable, BCbTable, RCrTable, GCrTable, BCrTable, NBitsTable;
static {
initialize();
}
void compress(ImageData image, byte[] dataYComp, byte[] dataCbComp, byte[] dataCrComp) {
int srcWidth = image.width;
int srcHeight = image.height;
int vhFactor = maxV... | public static int[] RYTable, GYTable, BYTable,
RCbTable, GCbTable, BCbTable, RCrTable, GCrTable, BCrTable, NBitsTable;
static {
initialize();
}
void compress(ImageData image, byte[] dataYComp, byte[] dataCbComp, byte[] dataCrComp) {
int srcWidth = image.width;
int srcHeight = image.height;
int vhFactor = maxV... |
public boolean orderDirty() {
return true;
}
| public boolean orderDirty() {
return false;
}
|
private void startGui(CLOption testFile) {
PluginManager.install(this, true);
JMeterTreeModel treeModel = new JMeterTreeModel();
JMeterTreeListener treeLis = new JMeterTreeListener(treeModel);
treeLis.setActionHandler(ActionRouter.getInstance());
// NOTUSED: GuiPackage guiPack =
GuiPackage.getInstance(tre... | private void startGui(CLOption testFile) {
PluginManager.install(this, true);
JMeterTreeModel treeModel = new JMeterTreeModel();
JMeterTreeListener treeLis = new JMeterTreeListener(treeModel);
treeLis.setActionHandler(ActionRouter.getInstance());
// NOTUSED: GuiPackage guiPack =
GuiPackage.getInstance(tre... |
public Pointcut concretize1(ResolvedTypeX searchStart, IntMap bindings) {
if (concretizing) {
//Thread.currentThread().dumpStack();
searchStart.getWorld().getMessageHandler().handleMessage(
MessageUtil.error("circular pointcut declaration involving: " + this,
getSourceLocation()));
return Point... | public Pointcut concretize1(ResolvedTypeX searchStart, IntMap bindings) {
if (concretizing) {
//Thread.currentThread().dumpStack();
searchStart.getWorld().getMessageHandler().handleMessage(
MessageUtil.error("circular pointcut declaration involving: " + this,
getSourceLocation()));
return Point... |
protected String dateToString(DateTimeData date) {
StringBuffer message = new StringBuffer(16);
append(message, date.hour, 2);
message.append(':');
append(message, date.month, 2);
message.append(':');
append(message, date.second);
append(message, (char)date.u... | protected String dateToString(DateTimeData date) {
StringBuffer message = new StringBuffer(16);
append(message, date.hour, 2);
message.append(':');
append(message, date.minute, 2);
message.append(':');
append(message, date.second);
append(message, (char)date.... |
public Object clone() {
ModuleController clone = (ModuleController) super.clone();
if (selectedNode == null) {
this.restoreSelected();
}
clone.selectedNode = selectedNode;
return clone;
}
| public Object clone() {
ModuleController clone = (ModuleController) super.clone();
if (selectedNode == null) {
this.restoreSelected();
}
clone.selectedNode = selectedNode; // TODO ?? (JMeterTreeNode) selectedNode.clone();
return clone;
}
|
public MarkupParser newMarkupParser(final MarkupContainer container)
{
final MarkupParser parser = new MarkupParser(container,
new XmlPullParser(settings.getDefaultMarkupEncoding()));
parser.configure(getSettings());
return parser;
}
| public MarkupParser newMarkupParser(final MarkupContainer container)
{
final MarkupParser parser = new MarkupParser(container,
new XmlPullParser(getSettings().getDefaultMarkupEncoding()));
parser.configure(getSettings());
return parser;
}
|
public void fillContextMenu(final IMenuManager manager) {
final IMenuManager menuManager = new MenuManager("Re&ferences", IContextMenuConstants.GROUP_SEARCH);
addAction(findReferencesAction, menuManager);
menuManager.add(new Separator());
if (!menuManager.isEmpty()) {
manager.appendToGroup(groupId, menuMa... | public void fillContextMenu(final IMenuManager manager) {
final IMenuManager menuManager = new MenuManager(Messages.ReferencesSearchGroup_Label, IContextMenuConstants.GROUP_SEARCH);
addAction(findReferencesAction, menuManager);
menuManager.add(new Separator());
if (!menuManager.isEmpty()) {
manager.append... |
public BuildJob(final IProject project) {
super("Building " + project.getName());
setRule(ResourcesPlugin.getWorkspace().getRuleFactory().buildRule());
this.project = project;
}
| public BuildJob(final IProject project) {
super(Messages.BuildJob_JobName + project.getName());
setRule(ResourcesPlugin.getWorkspace().getRuleFactory().buildRule());
this.project = project;
}
|
public void throwE(final IOException e) {
final Shell shell = new Shell();
MessageDialog.openError(shell, "Xtend EMF Eclipse Plug-in", e.getMessage());
throw new RuntimeException(e);
}
| public void throwE(final IOException e) {
final Shell shell = new Shell();
MessageDialog.openError(shell, Messages.AbstractCoreModelTransformerAction_PluginName, e.getMessage());
throw new RuntimeException(e);
}
|
protected IMarkupSourcingStrategy newMarkupSourcingStrategy()
{
return new PanelMarkupSourcingStrategy();
}
| protected IMarkupSourcingStrategy newMarkupSourcingStrategy()
{
return new PanelMarkupSourcingStrategy(false);
}
|
public void maybeConfigure(Project p, boolean configureChildren)
throws BuildException {
String id = null;
if( proxyConfigured ) {
return;
}
PropertyHelper ph=PropertyHelper.getPropertyHelper(p);
if (attributes != null) {
ph.configure(wrappe... | public void maybeConfigure(Project p, boolean configureChildren)
throws BuildException {
String id = null;
if( proxyConfigured ) {
return;
}
PropertyHelper2 ph=PropertyHelper2.getPropertyHelper(p);
if (attributes != null) {
ph.configure(wrap... |
public void execute() {
JXPathIntrospector.registerDynamicClass(Hashtable.class, JXPathHashtableHandler.class);
PropertyHelper phelper=PropertyHelper.getPropertyHelper( project );
phelper.addPropertyInterceptor( this );
project.addReference( "jxpathTask", this );
j... | public void execute() {
JXPathIntrospector.registerDynamicClass(Hashtable.class, JXPathHashtableHandler.class);
PropertyHelper2 phelper=PropertyHelper2.getPropertyHelper( project );
phelper.addPropertyInterceptor( this );
project.addReference( "jxpathTask", this );
... |
public void execute() {
PropertyHelper phelper=PropertyHelper.getPropertyHelper( project );
phelper.addPropertyInterceptor( this );
/*
* First make a jexlContext and put stuff in it
*/
jc = JexlHelper.createContext();
jc.getVars().put("ant", project);
... | public void execute() {
PropertyHelper2 phelper=PropertyHelper2.getPropertyHelper( project );
phelper.addPropertyInterceptor( this );
/*
* First make a jexlContext and put stuff in it
*/
jc = JexlHelper.createContext();
jc.getVars().put("ant", project);
... |
public void execute() {
try {
PropertyHelper phelper=PropertyHelper.getPropertyHelper( project );
phelper.addPropertyInterceptor( this );
engine=new VelocityEngine();
engine.init();
context=new VelocityContext();
context.p... | public void execute() {
try {
PropertyHelper2 phelper=PropertyHelper2.getPropertyHelper( project );
phelper.addPropertyInterceptor( this );
engine=new VelocityEngine();
engine.init();
context=new VelocityContext();
context... |
public static void main(String[] args) {
TestRunner.run(TestPersistence.class);
}
| public static void main(String[] args) {
TestRunner.run(TestEntityManagerMethodsThrowAfterClose.class);
}
|
public void clear() {
assertNotCloseInvoked();
_broker.detachAll(this);
}
| public void clear() {
assertNotCloseInvoked();
_broker.detachAll(this, false);
}
|
public void getValue(AccessibleControlEvent e) {
e.result = getText();
}
});
}
void onDispose(DisposeEvent event) {
gradientColors = null;
gradientPercents = null;
backgroundImage = null;
text = null;
image = null;
appToolTipText = null;
}
void onMnemonic(TraverseEvent event) {
char mnemonic = _findMnemo... | public void getValue(AccessibleControlEvent e) {
e.result = getText();
}
});
}
void onDispose(DisposeEvent event) {
gradientColors = null;
gradientPercents = null;
backgroundImage = null;
text = null;
image = null;
appToolTipText = null;
}
void onMnemonic(TraverseEvent event) {
char mnemonic = _findMnemo... |
protected Image getNodeImage(final DefaultMutableTreeNode node)
{
return new Image(JUNCTION_IMAGE_NAME, BLANK);
}
| protected Image getNodeImage(final DefaultMutableTreeNode node)
{
return new Image(NODE_IMAGE_NAME, BLANK);
}
|
public Connection getNewConnection() {
try {
return connectInternal();
} catch (SQLException e) {
throw SQLExceptions.getStore(e, _dict);
}
}
| public Connection getNewConnection() {
try {
return _ds.getConnection();
} catch (SQLException e) {
throw SQLExceptions.getStore(e, _dict);
}
}
|
private boolean validateDocument(String document)
{
HtmlDocumentValidator validator = new HtmlDocumentValidator();
Tag html = new Tag("html");
Tag head = new Tag("head");
html.addExpectedChild(head);
Tag title = new Tag("title");
head.addExpectedChild(title);
title.addExpectedChild(new TextContent("Mock... | private boolean validateDocument(String document)
{
HtmlDocumentValidator validator = new HtmlDocumentValidator();
Tag html = new Tag("html");
Tag head = new Tag("head");
html.addExpectedChild(head);
Tag title = new Tag("title");
head.addExpectedChild(title);
title.addExpectedChild(new TextContent("Mock... |
public Class getContainerClass()
{
return markup.getContainerClass();
}
| public Class getContainerClass()
{
return markup.getResource().getMarkupClass();
}
|
public void testReferenceAbuse() {
expectBuildExceptionContaining("test-reference-abuse",
"reference abuse rejected",
"You must not specify more than one attribute when using refid");
}
| public void testReferenceAbuse() {
expectBuildExceptionContaining("test-reference-abuse",
"reference abuse rejected",
"You must not specify nested elements when using refid");
}
|
public void comment(XMLString text, Augmentations augs) throws XNIException {
if (!fCanonical) {
if (fSeenRootElement) {
fOut.print('\n');
}
fOut.print("<!--");
normalizeAndPrint(text);
fOut.print("-->");
if (!fSeenRootE... | public void comment(XMLString text, Augmentations augs) throws XNIException {
if (!fCanonical) {
if (fSeenRootElement && fElementDepth == 0) {
fOut.print('\n');
}
fOut.print("<!--");
normalizeAndPrint(text);
fOut.print("-->");
... |
private Function createNormalDefinition (Definition def, Set<XpandDefinitionName> referencedDefinitions) {
final XpandExecutionContext oldCtx = _ctx;
try {
final List<String> paramNames = new ArrayList<String>();
final List<BackendType> paramTypes = new ArrayList<Bac... | private Function createNormalDefinition (Definition def, Set<XpandDefinitionName> referencedDefinitions) {
final XpandExecutionContext oldCtx = _ctx;
try {
final List<String> paramNames = new ArrayList<String>();
final List<BackendType> paramTypes = new ArrayList<Bac... |
public void testDashX() {
String xoptionText = ResourceBundle.getBundle("org.aspectj.ajdt.ajc.messages").getString("xoption.usage");
xoptionText = xoptionText.substring("{compiler.name}".length());
CompilationResult result = ajc(null,new String[] {"-X"});
assertMessages(result,"Expecting xoptions u... | public void testDashX() {
String xoptionText = ResourceBundle.getBundle("org.aspectj.ajdt.ajc.messages").getString("xoption.usage");
xoptionText = xoptionText.substring("{compiler.name}".length());
CompilationResult result = ajc(null,new String[] {"-X"});
assertMessages(result,"Expecting xoptions u... |
public JMeterTestCase(String name) {
super(name);
}
/*
* If not running under AllTests.java, make sure that the properties (and
* log file) are set up correctly.
*
* N.B. In order for this to work correctly, the JUnit test must be started
* in the bin directory, and all the JMeter jars (plus any others... | public JMeterTestCase(String name) {
super(name);
}
/*
* If not running under AllTests.java, make sure that the properties (and
* log file) are set up correctly.
*
* N.B. In order for this to work correctly, the JUnit test must be started
* in the bin directory, and all the JMeter jars (plus any others... |
public VexActionAdapter(VexEditor editor, IVexAction action) {
this.editor = editor;
this.action = action;
String id = action.getClass().getName();
int i = id.lastIndexOf("."); //$NON-NLS-1$
String key = id.substring(i + 1);
this.setId(id);
this.setActionDefinitionId(id);
this.setText(Messages.getSt... | public VexActionAdapter(VexEditor editor, IVexAction action) {
this.editor = editor;
this.action = action;
String id = action.getClass().getName();
int i = id.lastIndexOf("."); //$NON-NLS-1$
String key = id.substring(i + 1);
this.setId(id);
this.setActionDefinitionId(id);
this.setText(Messages.getSt... |
protected void setInput(IEditorInput input) {
super.setInput(input);
this.setPartName(input.getName());
this.setContentDescription(input.getName());
this.setTitleToolTip(input.getToolTipText());
}
| protected void setInput(IEditorInput input) {
super.setInput(input);
this.setPartName(input.getName());
this.setContentDescription(input.getName());
//this.setTitleToolTip(input.getToolTipText());
}
|
public final boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
final ComponentTag tag)
{
// It must be <wicket:...>
if (tag.isWicketTag())
{
// It must be <wicket:component...>
if (tag.isComponentTag())
{
// Create and initialize the component
final Component ... | public final boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
final ComponentTag tag)
{
// It must be <wicket:...>
if (tag.isWicketTag())
{
// It must be <wicket:component...>
if (tag.isComponentTag())
{
// Create and initialize the component
final Component ... |
public final boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
final ComponentTag tag)
{
// Must be marked as autolink tag
if (tag.isAutolinkEnabled())
{
// Try to find the Page matching the href
// Note: to not use tag.getId() because it will be modified while
// res... | public final boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
final ComponentTag tag)
{
// Must be marked as autolink tag
if (tag.isAutolinkEnabled())
{
// Try to find the Page matching the href
// Note: to not use tag.getId() because it will be modified while
// res... |
public boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
final ComponentTag tag)
{
if (tag.isEnclosureTag())
{
String id = Component.AUTO_COMPONENT_PREFIX + "enclosure-"
+ container.getPage().getAutoIndex();
final Enclosure enclosure = new Enclosure(container, id, tag... | public boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
final ComponentTag tag)
{
if (tag.isEnclosureTag())
{
String id = Component.AUTO_COMPONENT_PREFIX + "enclosure-"
+ container.getPage().getAutoIndex();
final Enclosure enclosure = new Enclosure(container, id, tag... |
public boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
final ComponentTag tag)
{
// If <wicket:extend...> or <wicket:child...>
if (tag.isExtendTag() || tag.isChildTag())
{
new TransparentWebMarkupContainer(container, Component.AUTO_COMPONENT_PREFIX
+ tag.getId()).aut... | public boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
final ComponentTag tag)
{
// If <wicket:extend...> or <wicket:child...>
if (tag.isExtendTag() || tag.isChildTag())
{
new TransparentWebMarkupContainer(container, Component.AUTO_COMPONENT_PREFIX
+ tag.getId()).ren... |
protected void onAfterRender()
{
onEndRequestWasCalledOnAutoAddedComponent = true;
}
};
label.autoAdded();
return true;
}
return false;
}
| protected void onAfterRender()
{
onEndRequestWasCalledOnAutoAddedComponent = true;
}
};
label.render(markupStream);
return true;
}
return false;
}
|
public FormComponentFeedbackBorder(final String id)
{
super(id);
addToBorder(new ErrorIndicator("errorIndicator"));
}
| public FormComponentFeedbackBorder(final String id)
{
super(id);
add(new ErrorIndicator("errorIndicator"));
}
|
public FormBorder(final String id)
{
super(id);
form = new Form<Void>("myForm");
addToBorder(form);
form.add(getBodyContainer());
}
| public FormBorder(final String id)
{
super(id);
form = new Form<Void>("myForm");
add(form);
form.add(getBodyContainer());
}
|
public void onClick()
{
expanded = !expanded;
getBodyContainer().setVisible(expanded);
}
};
link.add(new Label("titleLabel", titleModel));
addToBorder(link);
}
| public void onClick()
{
expanded = !expanded;
getBodyContainer().setVisible(expanded);
}
};
link.add(new Label("titleLabel", titleModel));
add(link);
}
|
public boolean accept(FeedbackMessage message)
{
return feedback.getFilter().accept(message) && message.isError();
}
});
return "border: 1px solid " + (error ? "red" : "green");
}
}));
addToBorder(brdr);
}
| public boolean accept(FeedbackMessage message)
{
return feedback.getFilter().accept(message) && message.isError();
}
});
return "border: 1px solid " + (error ? "red" : "green");
}
}));
add(brdr);
}
|
public Object start(IApplicationContext ctxt) throws Exception {
Map args = ctxt.getArguments();
initializeFromArguments((String[]) args.get("application.args")); //$NON-NLS-1$
// Load and start ECF core bundles (to execute ecfstart jobs like discovery providers)
ContainerFactory.getDefault().getDescriptions(... | public Object start(IApplicationContext ctxt) throws Exception {
Map args = ctxt.getArguments();
initializeFromArguments((String[]) args.get("application.args")); //$NON-NLS-1$
// Load and start ECF core bundles (to execute ecfstart jobs like discovery providers)
ContainerFactory.getDefault().getDescriptions(... |
public MultipleStereotypeType (List<BackendType> stereoTypeTypes) {
super (computeName (stereoTypeTypes), stereoTypeTypes.toArray (new BackendType[0]));
_stereotypeTypes = stereoTypeTypes;
}
| public MultipleStereotypeType (List<BackendType> stereoTypeTypes) {
super (computeName (stereoTypeTypes), computeName(stereoTypeTypes), stereoTypeTypes.toArray (new BackendType[0])); //TODO uniqueRepresentation
_stereotypeTypes = stereoTypeTypes;
}
|
public StereotypeType (String name, Stereotype stereoType, UmlTypesystem umlTs) {
super (name, superTypes (umlTs, stereoType).toArray (new BackendType[0]));
_stereoType = stereoType;
for (StereotypeProperty stp: getProperties(this, stereoType, umlTs))
register (stp);
... | public StereotypeType (String name, Stereotype stereoType, UmlTypesystem umlTs) {
super (name, name, superTypes (umlTs, stereoType).toArray (new BackendType[0])); //TODO uniqueRepresentation
_stereoType = stereoType;
for (StereotypeProperty stp: getProperties(this, stereoType, umlTs... |
private CollectionType() {
super ("Collection");
register (new BuiltinProperty (this, LongType.INSTANCE, "size", ReflectionHelper.getKnownMethod(Collection.class, "size"), null));
register (new BuiltinProperty (this, BooleanType.INSTANCE, "isEmpty", ReflectionHelper.getKnownMethod(Coll... | private CollectionType() {
super ("Collection", "{builtin}Collection");
register (new BuiltinProperty (this, LongType.INSTANCE, "size", ReflectionHelper.getKnownMethod(Collection.class, "size"), null));
register (new BuiltinProperty (this, BooleanType.INSTANCE, "isEmpty", ReflectionHelp... |
private MapType () {
super ("Map");
register (new BuiltinProperty (CollectionType.INSTANCE, LongType.INSTANCE, "size", ReflectionHelper.getKnownMethod(Collection.class, "size"), null));
register (new BuiltinProperty (CollectionType.INSTANCE, BooleanType.INSTANCE, "isEmpty", Reflect... | private MapType () {
super ("Map", "{builtin}Map");
register (new BuiltinProperty (CollectionType.INSTANCE, LongType.INSTANCE, "size", ReflectionHelper.getKnownMethod(Collection.class, "size"), null));
register (new BuiltinProperty (CollectionType.INSTANCE, BooleanType.INSTANCE, "is... |
private PropertyType () {
super ("Property");
register (new BuiltinProperty (this, StringType.INSTANCE, "name", ReflectionHelper.getKnownMethod(Property.class, "getName"), null));
register (new BuiltinProperty (this, TypeType.INSTANCE, "returnType", ReflectionHelper.getKnownMethod(P... | private PropertyType () {
super ("Property", "{builtin}Property");
register (new BuiltinProperty (this, StringType.INSTANCE, "name", ReflectionHelper.getKnownMethod(Property.class, "getName"), null));
register (new BuiltinProperty (this, TypeType.INSTANCE, "returnType", ReflectionHe... |
private SetType () {
super ("Set", CollectionType.INSTANCE);
}
| private SetType () {
super ("Set", "{builtin}Set", CollectionType.INSTANCE);
}
|
private StaticPropertyType () {
super ("Property");
register (new BuiltinProperty (this, StringType.INSTANCE, "name", ReflectionHelper.getKnownMethod(Property.class, "getName"), null));
register (new BuiltinProperty (this, TypeType.INSTANCE, "returnType", ReflectionHelper.getKnownMethod(Pro... | private StaticPropertyType () {
super ("StaticProperty", "{builtin}StaticProperty");
register (new BuiltinProperty (this, StringType.INSTANCE, "name", ReflectionHelper.getKnownMethod(Property.class, "getName"), null));
register (new BuiltinProperty (this, TypeType.INSTANCE, "returnType", Re... |
private StringType () {
super ("String");
register (new BuiltinProperty (this, this, "length", ReflectionHelper.getKnownMethod (CharSequence.class, "length"), null));
}
| private StringType () {
super ("String", "{builtin}String");
register (new BuiltinProperty (this, this, "length", ReflectionHelper.getKnownMethod (CharSequence.class, "length"), null));
}
|
public BackendType convertToBackendType (Type t) {
if (t instanceof EClassType)
return convertEClassType (t);
if (t instanceof EDataTypeType)
return convertEDataTypeType (t);
if (t instanceof EEnumType)
return convertEEnumType (t);
if (t instanceof... | public BackendType convertToBackendType (Type t) {
if (t instanceof EClassType)
return convertEClassType (t);
if (t instanceof EDataTypeType)
return convertEDataTypeType (t);
if (t instanceof EEnumType)
return convertEEnumType (t);
if (t instanceof... |
public void create (Composite parent, int style) {
delegate = new MozillaDelegate (browser);
Display display = parent.getDisplay ();
int /*long*/[] result = new int /*long*/[1];
if (!Initialized) {
boolean initLoaded = false;
boolean IsXULRunner = false;
String greInitialized = System.getProperty (GRE_INITI... | public void create (Composite parent, int style) {
delegate = new MozillaDelegate (browser);
Display display = parent.getDisplay ();
int /*long*/[] result = new int /*long*/[1];
if (!Initialized) {
boolean initLoaded = false;
boolean IsXULRunner = false;
String greInitialized = System.getProperty (GRE_INITI... |
private void updateAdler(byte value) {
int low = adlerValue & 0xFFFF;
int high = (adlerValue >> 16) & 0xFFFF;
int valueInt = value & 0xFF;
low = (low + valueInt) % PRIME;
high = (low + high) % PRIME;
adlerValue = (high << 16) | low;
}
| private PngIdatChunk getNextChunk() {
PngChunk chunk = chunkReader.readNextChunk();
if (chunk == null) error();
if (chunk.getChunkType() != PngChunk.CHUNK_IDAT) error();
return (PngIdatChunk) chunk;
}
byte getNextIdatByte() {
if (nextByteIndex > currentChunk.getLength() - 1) {
currentChunk = getNextChunk();
... |
public static void addDefaultAlias(String alias, String cls) {
if (_aliases.contains(alias)) {
_aliases.set(_aliases.indexOf(alias), cls);
} else {
_aliases.add(alias);
_aliases.add(cls);
}
}
| public static void addDefaultAlias(String alias, String cls) {
if (_aliases.contains(alias)) {
_aliases.set(_aliases.indexOf(alias) + 1, cls);
} else {
_aliases.add(alias);
_aliases.add(cls);
}
}
|
protected static ZipLong toDosTime(Date time) {
int year = time.getYear() + 1900;
int month = time.getMonth() + 1;
if (year < 1980) {
return DOS_TIME_MIN;
}
long value = ((year - 1980) << 25)
| (month << 21)
| (time.getDate... | protected static ZipLong toDosTime(Date time) {
int year = time.getYear() + 1900;
int month = time.getMonth() + 1;
if (year < 1980) {
return DOS_TIME_MIN;
}
long value = ((year - 1980) << 25)
| (month << 21)
| (time.getDate... |
public OpenJPAConfigurationImpl(boolean derivations, boolean loadGlobals) {
super(false);
String[] aliases;
classResolverPlugin = addPlugin("ClassResolver", true);
aliases = new String[] {
"default", "org.apache.openjpa.util.ClassResolverImpl",
// de... | public OpenJPAConfigurationImpl(boolean derivations, boolean loadGlobals) {
super(false);
String[] aliases;
classResolverPlugin = addPlugin("ClassResolver", true);
aliases = new String[] {
"default", "org.apache.openjpa.util.ClassResolverImpl",
// de... |
private int getErrorLevel(HttpURLConnection conn, SampleResult res, long time) throws IOException
{
int errorLevel = 200;
String message = null;
errorLevel = ((HttpURLConnection) conn).getResponseCode();
message = ((HttpURLConnection) conn).getResponseMessage();
res.setRe... | private int getErrorLevel(HttpURLConnection conn, SampleResult res, long time) throws IOException
{
int errorLevel = 200;
String message = null;
errorLevel = ((HttpURLConnection) conn).getResponseCode();
message = ((HttpURLConnection) conn).getResponseMessage();
res.setRe... |
public final MarkupContainer replace(final Component child)
{
checkHierarchyChange(child);
if (child == null)
{
throw new IllegalArgumentException("argument child must be not null");
}
if (log.isDebugEnabled())
{
log.debug("Replacing " + child.getId() + " in " + this);
}
if (child.getParent()... | public final MarkupContainer replace(final Component child)
{
checkHierarchyChange(child);
if (child == null)
{
throw new IllegalArgumentException("argument child must be not null");
}
if (log.isDebugEnabled())
{
log.debug("Replacing " + child.getId() + " in " + this);
}
if (child.getParent()... |
public void handleEvent(IContainerEvent evt) {
if (evt instanceof IContainerDisconnectedEvent) {
IContainerDisconnectedEvent cd = (IContainerDisconnectedEvent) evt;
final ID departedContainerID = cd.getTargetID();
ID connectedID = newClientEntry.getConnectedID();
if (connectedID == null
... | public void handleEvent(IContainerEvent evt) {
if (evt instanceof IContainerDisconnectedEvent) {
IContainerDisconnectedEvent cd = (IContainerDisconnectedEvent) evt;
final ID departedContainerID = cd.getTargetID();
ID connectedID = newClientEntry.getConnectedID();
if (connectedID == null
... |
public void handleEvent(IContainerEvent event) {
if (event instanceof ISharedObjectActivatedEvent) {
ISharedObjectActivatedEvent e = (ISharedObjectActivatedEvent) event;
if (e.getActivatedID().equals(id)) {
result[0] = mgr.getSharedObject(id);
synchronized (monitor) {
monitor.notify(... | public void handleEvent(IContainerEvent event) {
if (event instanceof ISharedObjectActivatedEvent) {
ISharedObjectActivatedEvent e = (ISharedObjectActivatedEvent) event;
if (e.getActivatedID().equals(id)) {
result[0] = mgr.getSharedObject(id);
synchronized (monitor) {
monitor.notify(... |
protected IPresence createIPresence(Presence xmppPresence) {
int priority = xmppPresence.getPriority();
String status = xmppPresence.getStatus();
IPresence newPresence = new org.eclipse.ecf.presence.impl.Presence(
createIPresenceType(xmppPresence), priority, status,
... | protected IPresence createIPresence(Presence xmppPresence) {
int priority = xmppPresence.getPriority();
String status = xmppPresence.getStatus();
IPresence newPresence = new org.eclipse.ecf.presence.Presence(
createIPresenceType(xmppPresence), priority, status,
... |
package wicket.request.target;
/*
* $Id$
* $Revision$ $Date$
*
* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the Lic... | package wicket.request.target;
/*
* $Id$
* $Revision$ $Date$
*
* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the Lic... |
package wicket.request.target;
/*
* $Id: IListenerInterfaceRequestTarget.java,v 1.2 2005/11/30 21:43:01 joco01
* Exp $ $Revision$ $Date$
*
* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this fil... | package wicket.request.target;
/*
* $Id: IListenerInterfaceRequestTarget.java,v 1.2 2005/11/30 21:43:01 joco01
* Exp $ $Revision$ $Date$
*
* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this fil... |
public void testGetExecutableMostPlatforms() {
if (!Os.isName("netware") && !Os.isFamily("windows")) {
String javaHome =
FILE_UTILS.normalize(System.getProperty("java.home"))
.getAbsolutePath();
// could still be OS/2
String extension = Os... | public void testGetExecutableMostPlatforms() {
if (!Os.isName("netware") && !Os.isFamily("windows")) {
String javaHome =
FILE_UTILS.normalize(System.getProperty("java.home"))
.getAbsolutePath();
// could still be OS/2
String extension = Os... |
public boolean open () {
checkWidget ();
if (rectangles == null) return false;
if (rectangles.length == 0) return false;
cancelled = false;
tracking = true;
/*
* If exactly one of UP/DOWN is specified as a style then set the cursor
* orientation accordingly (the same is done for LEFT/RIGHT styles below).
*/
... | public boolean open () {
checkWidget ();
if (rectangles == null) return false;
if (rectangles.length == 0) return false;
cancelled = false;
tracking = true;
/*
* If exactly one of UP/DOWN is specified as a style then set the cursor
* orientation accordingly (the same is done for LEFT/RIGHT styles below).
*/
... |
public void setAlignment(int alignment) {
checkWidget();
alignment &= (SWT.LEFT | SWT.RIGHT | SWT.CENTER);
if (alignment == 0 || this.alignment == alignment);
this.alignment = alignment;
resetCache(0, content.getLineCount());
setCaretLocation();
super.redraw();
}
| public void setAlignment(int alignment) {
checkWidget();
alignment &= (SWT.LEFT | SWT.RIGHT | SWT.CENTER);
if (alignment == 0 || this.alignment == alignment) return;
this.alignment = alignment;
resetCache(0, content.getLineCount());
setCaretLocation();
super.redraw();
}
|
protected int setPostHeaders(PostMethod post) {
int length=0;// Take length from file
if (getHeaderManager() != null) {
// headerManager was set, so let's set the connection
// to use it.
HeaderManager mngr = getHeaderManager();
int headerSize = mngr.s... | protected int setPostHeaders(PostMethod post) {
int length=0;// Take length from file
if (getHeaderManager() != null) {
// headerManager was set, so let's set the connection
// to use it.
HeaderManager mngr = getHeaderManager();
int headerSize = mngr.s... |
public void setUp() {
setUp(NonstandardMappingEntity.class, ExtensionsEntity.class,
NonstandardMappingMappedSuper.class, EmbedValue2.class,
EmbedValue.class,
CLEAR_TABLES);
// trigger complete resolution of metadata etc.
emf.createEntityManager().close();... | public void setUp() {
setUp(NonstandardMappingEntity.class, ExtensionsEntity.class,
NonstandardMappingMappedSuper.class, EmbedValue2.class,
EmbedValue.class,
CLEAR_TABLES, RETAIN_DATA);
// trigger complete resolution of metadata etc.
emf.createEntityManag... |
private void expandStream(String name, InputStream stream, File dir)
throws IOException {
TarInputStream tis = null;
try {
tis =
new TarInputStream(compression.decompress(name,
new BufferedInputStream(strea... | private void expandStream(String name, InputStream stream, File dir)
throws IOException {
TarInputStream tis = null;
try {
tis =
new TarInputStream(compression.decompress(name,
new BufferedInputStream(strea... |
public void ungetService(final Bundle bundle, final ServiceRegistration registration, final Object service) {
// nop
}
}, props);
}
| public void ungetService(final Bundle bundle, final ServiceRegistration registration, final Object service) {
((CompositeDiscoveryContainer) service).dispose();
}
}, props);
}
|
public Object component(Component component)
{
int levels = 0;
for (Component current = component; current != null; current = current.getParent())
{
levels++;
}
buffer.append(StringValue.repeat(levels, " ") + component.getPageRelativePath()
+ "." + Classes.name(component.getClass())... | public Object component(Component component)
{
int levels = 0;
for (Component current = component; current != null; current = current.getParent())
{
levels++;
}
buffer.append(StringValue.repeat(levels, " ") + component.getPageRelativePath()
+ ":" + Classes.name(component.getClass())... |
public Object component(final Component component)
{
if (!component.getPath().startsWith(WicketComponentTree.this.getPath()))
{
final ComponentData object = new ComponentData();
// anonymous class? Get the parent's class name
String name = component.getClass().getName();
if (na... | public Object component(final Component component)
{
if (!component.getPath().startsWith(WicketComponentTree.this.getPath()))
{
final ComponentData object = new ComponentData();
// anonymous class? Get the parent's class name
String name = component.getClass().getName();
if (na... |
public String getPopupJavaScript()
{
String windowTitle = windowName;
if (windowTitle == null)
{
windowTitle = "";
}
else
{
// Fix for IE bug.
windowTitle = windowTitle.replace('.', '_');
}
StringBuffer script = new StringBuffer("if (!window.focus) return true; window.open("
+ target +... | public String getPopupJavaScript()
{
String windowTitle = windowName;
if (windowTitle == null)
{
windowTitle = "";
}
else
{
// Fix for IE bug.
windowTitle = windowTitle.replace(':', '_');
}
StringBuffer script = new StringBuffer("if (!window.focus) return true; window.open("
+ target + ... |
private void invokeInterface(final Component component, final Method method)
{
try
{
// Invoke the interface method on the component
method.invoke(component, new Object[] { });
}
catch (IllegalAccessException e)
{
throw new WicketRuntimeException("Cannot access method " + method + " of interface "
... | private void invokeInterface(final Component component, final Method method)
{
try
{
// Invoke the interface method on the component
method.invoke(component, new Object[] { });
}
catch (IllegalAccessException e)
{
throw new WicketRuntimeException("Cannot access method " + method + " of interface "
... |
public Object getDisplayValue(Object object)
{
Object returnValue = object;
if ((displayExpression != null) && (object != null))
{
returnValue = PropertyResolver.getValue(displayExpression, object);
}
if (returnValue == null)
{
return "";
}
return returnValue.toString();
}
| public Object getDisplayValue(Object object)
{
Object returnValue = object;
if ((displayExpression != null) && (object != null))
{
returnValue = PropertyResolver.getValue(displayExpression, object);
}
if (returnValue == null)
{
return "";
}
return returnValue;
}
|
protected final void addAntiCacheParameter(final ComponentTag tag)
{
String url = tag.getAttributes().getString("src");
url = url + (url.contains("?") ? "&" : "?");
url = url + "wicket:antiCache=" + System.currentTimeMillis();
tag.put("src", url);
}
| protected final void addAntiCacheParameter(final ComponentTag tag)
{
String url = tag.getAttributes().getString("src");
url = url + (url.contains("?") ? "&" : "?");
url = url + "antiCache=" + System.currentTimeMillis();
tag.put("src", url);
}
|
private static int search(final CharSequence s, String searchString, int pos)
{
int matchIndex = -1;
if (s instanceof String)
{
matchIndex = ((String)s).indexOf(searchString, pos);
}
else if (s instanceof StringBuffer)
{
matchIndex = ((StringBuffer)s).indexOf(searchString, pos);
}
else if (s ins... | private static int search(final CharSequence s, String searchString, int pos)
{
int matchIndex = -1;
if (s instanceof String)
{
matchIndex = ((String)s).indexOf(searchString, pos);
}
else if (s instanceof StringBuffer)
{
matchIndex = ((StringBuffer)s).indexOf(searchString, pos);
}
else if (s ins... |
public void execute() throws BuildException
{
validate();
final Properties userList = new Properties();
loadUserlist( userList );
for( Enumeration e = m_cvsUsers.elements(); e.hasMoreElements(); )
{
final CvsUser user = (CvsUser)e.nextElement();
... | public void execute() throws BuildException
{
validate();
final Properties userList = new Properties();
loadUserlist( userList );
for( Enumeration e = m_cvsUsers.elements(); e.hasMoreElements(); )
{
final CvsUser user = (CvsUser)e.nextElement();
... |
private boolean matchServiceID(IServiceID serviceId) {
if (Arrays.asList(serviceId.getServiceTypeID().getServices()).contains(
RemoteConstants.SERVICE_TYPE))
return true;
return false;
}
void handleService(IServiceInfo serviceInfo, boolean discovered) {
IServiceID serviceID = serviceInfo.getServiceID()... | private boolean matchServiceID(IServiceID serviceId) {
if (Arrays.asList(serviceId.getServiceTypeID().getServices()).contains(
RemoteConstants.SERVICE_TYPE))
return true;
return false;
}
void handleService(IServiceInfo serviceInfo, boolean discovered) {
IServiceID serviceID = serviceInfo.getServiceID()... |
public void testSimple() {
assertEquals(new String[]{ "foo() bar(boo)" },
Filters.splitExpressions("foo() bar(boo)", ',', 3));
assertEquals(new String[]{ "foo() bar(boo)", "biz()", "baz(boo)" },
Filters.splitExpressions("foo() bar(boo), bizbaz(boo)",
',', 3));... | public void testSimple() {
assertEquals(new String[]{ "foo() bar(boo)" },
Filters.splitExpressions("foo() bar(boo)", ',', 3));
assertEquals(new String[]{ "foo() bar(boo)", "biz()", "baz(boo)" },
Filters.splitExpressions("foo() bar(boo), biz(), baz(boo)",
',', ... |
public void run() {
int direction = BidiUtil.getKeyboardLanguage() == BidiUtil.KEYBOARD_BIDI ? SWT.RIGHT : SWT.LEFT;
if (direction == caretDirection) return;
if (getCaret() != defaultCaret) return;
Point newCaretPos = getPointAtOffset(caretOffset);
setCaretLocation(newCaretPos, direction);
}
... | public void run() {
int direction = BidiUtil.getKeyboardLanguage() == BidiUtil.KEYBOARD_BIDI ? SWT.RIGHT : SWT.LEFT;
if (direction == caretDirection) return;
if (getCaret() != defaultCaret) return;
Point newCaretPos = getPointAtOffset(caretOffset);
setCaretLocation(newCaretPos, direction);
}
... |
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
return computeSize (handle, wHint, hHint, changed);
}
Point computeSize (int handle, int wHint, int hHint, boolean changed) {
int width = wHint, height = hHint;
if (wHint == SWT.DEFAULT) width = 0x7FFFFFFF;
if (hHint == SWT.DEFAULT... | public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
return computeSize (handle, wHint, hHint, changed);
}
Point computeSize (int handle, int wHint, int hHint, boolean changed) {
int width = wHint, height = hHint;
if (wHint == SWT.DEFAULT) width = 0x7FFFFFFF;
if (hHint == SWT.DEFAULT... |
public Label (Composite parent, int style) {
super (parent, checkStyle (style));
}
static int checkStyle (int style) {
style |= SWT.NO_FOCUS;
if ((style & SWT.SEPARATOR) != 0) {
style = checkBits (style, SWT.VERTICAL, SWT.HORIZONTAL, 0, 0, 0, 0);
return checkBits (style, SWT.SHADOW_OUT, SWT.SHADOW_IN, SWT.SHADO... | public Label (Composite parent, int style) {
super (parent, checkStyle (style));
}
static int checkStyle (int style) {
style |= SWT.NO_FOCUS;
if ((style & SWT.SEPARATOR) != 0) {
style = checkBits (style, SWT.VERTICAL, SWT.HORIZONTAL, 0, 0, 0, 0);
return checkBits (style, SWT.SHADOW_OUT, SWT.SHADOW_IN, SWT.SHADO... |
// Component.findPage() is 'protected'. But this works as well.
if (behaviorOwner.findParent(Page.class) == null)
{
setEnabled(false);
return currentValue;
}
// And the "Panel" must be visible. Wicket core tests only
// that the body (the component the attribute modifier is
// attached to)... | // Component.findPage() is 'protected'. But this works as well.
if ( !(behaviorOwner instanceof Page) && behaviorOwner.findParent(Page.class) == null)
{
setEnabled(false);
return currentValue;
}
// And the "Panel" must be visible. Wicket core tests only
// that the body (the component the att... |
private final void renderNext(final MarkupStream markupStream)
{
// Get the current markup element
final MarkupElement element = markupStream.get();
// If it a tag like <wicket..> or <span wicket:id="..." >
if ((element instanceof ComponentTag) && !markupStream.atCloseTag())
{
// Get element as tag
f... | private final void renderNext(final MarkupStream markupStream)
{
// Get the current markup element
final MarkupElement element = markupStream.get();
// If it a tag like <wicket..> or <span wicket:id="..." >
if ((element instanceof ComponentTag) && !markupStream.atCloseTag())
{
// Get element as tag
f... |
public StringBuffer filter(StringBuffer responseBuffer)
{
int headIndex = responseBuffer.indexOf("<head>");
int bodyIndex = responseBuffer.indexOf("</body>");
long timeTaken = System.currentTimeMillis() - RequestCycle.get().getStartTime();
if(headIndex != -1 && bodyIndex != -1)
{
Map map = new HashMap(4)... | public StringBuffer filter(StringBuffer responseBuffer)
{
int headIndex = responseBuffer.indexOf("<head>");
int bodyIndex = responseBuffer.indexOf("</body>");
long timeTaken = System.currentTimeMillis() - RequestCycle.get().getStartTime();
if(headIndex != -1 && bodyIndex != -1)
{
Map map = new HashMap(4)... |
public ApplicationView(final String id, final Application application)
{
super(id);
// Basic attributes
add(new Label("name", application.getName()));
add(new Label("componentUseCheck", ""
+ application.getDebugSettings().getComponentUseCheck()));
add(new Label("compressWhitespace", ""
+ applicatio... | public ApplicationView(final String id, final Application application)
{
super(id);
// Basic attributes
add(new Label("name", application.getName()));
add(new Label("componentUseCheck", ""
+ application.getDebugSettings().getComponentUseCheck()));
add(new Label("compressWhitespace", ""
+ applicatio... |
public final MarkupElement nextTag() throws ParseException
{
// Get the next tag from the next MarkupFilter in the chain
// If null, no more tags are available
final ComponentTag tag = (ComponentTag)getParent().nextTag();
if (tag == null)
{
return tag;
}
final String wicketMessageAttribute = tag.get... | public final MarkupElement nextTag() throws ParseException
{
// Get the next tag from the next MarkupFilter in the chain
// If null, no more tags are available
final ComponentTag tag = (ComponentTag)getParent().nextTag();
if (tag == null)
{
return tag;
}
final String wicketMessageAttribute = tag.get... |
public boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
final ComponentTag tag)
{
// It must be <body onload>
if (tag instanceof WicketTag)
{
WicketTag wtag = (WicketTag)tag;
if (wtag.isMessageTag() && (wtag.getNamespace() != null))
{
String messageKey = wtag.get... | public boolean resolve(final MarkupContainer container, final MarkupStream markupStream,
final ComponentTag tag)
{
// It must be <body onload>
if (tag instanceof WicketTag)
{
WicketTag wtag = (WicketTag)tag;
if (wtag.isMessageTag() && (wtag.getNamespace() != null))
{
String messageKey = wtag.get... |
public final void respond(RequestCycle requestCycle, RuntimeException e)
{
// If application doesn't want debug info showing up for users
final Session session = requestCycle.getSession();
final Application application = session.getApplication();
final IExceptionSettings settings = application.getExceptionSet... | public final void respond(RequestCycle requestCycle, RuntimeException e)
{
// If application doesn't want debug info showing up for users
final Session session = requestCycle.getSession();
final Application application = session.getApplication();
final IExceptionSettings settings = application.getExceptionSet... |
public ExpiredPageClassRequestTarget()
{
super(Application.get().getRequiredPageSettings().getPageExpiredErrorPage());
}
| public ExpiredPageClassRequestTarget()
{
super(Application.get().getApplicationSettings().getPageExpiredErrorPage());
}
|
public void testLocalizer()
{
Application dummy = new DummyApplication();
Assert.assertNotNull("Localizer should be available", dummy.getMarkupSettings().getLocalizer());
}
| public void testLocalizer()
{
Application dummy = new DummyApplication();
Assert.assertNotNull("Localizer should be available", dummy.getResourceSettings().getLocalizer());
}
|
protected void setUp() throws Exception
{
super.setUp();
application = new DummyApplication();
settings = application.getResourceSettings();
settings.addStringResourceLoader(new ApplicationStringResourceLoader(application));
localizer = application.getMarkupSettings().getLocalizer();
}
| protected void setUp() throws Exception
{
super.setUp();
application = new DummyApplication();
settings = application.getResourceSettings();
settings.addStringResourceLoader(new ApplicationStringResourceLoader(application));
localizer = application.getResourceSettings().getLocalizer();
}
|
protected void setUp() throws Exception
{
super.setUp();
application.getRequestCycleSettings().getComponentResolvers().add(new ScopedComponentResolver());
}
| protected void setUp() throws Exception
{
super.setUp();
application.getPageSettings().addComponentResolver(new ScopedComponentResolver());
}
|
public TemplatePage(final PageParameters parameters)
{
Map<String, List<Person>> map = new HashMap<String, List<Person>>();
map.put("persons", VelocityTemplateApplication.getPersons());
templateContext = Model.valueOf(map);
| public TemplatePage(final PageParameters parameters)
{
Map<String, List<Person>> map = new HashMap<String, List<Person>>();
map.put("persons", VelocityTemplateApplication.getPersons());
templateContext = Model.ofMap(map);
|
public BoxBorderTestPage_9()
{
Border myBorder = new BorderComponent1("myBorder");
add(myBorder);
Fragment panel1 = new Fragment("fragmentsWillBeRenderedHere", "fragmentSource");
myBorder.add(panel1);
}
| public BoxBorderTestPage_9()
{
Border myBorder = new BorderComponent1("myBorder");
add(myBorder);
Fragment panel1 = new Fragment("fragmentsWillBeRenderedHere", "fragmentSource", this);
myBorder.add(panel1);
}
|
public InlinePanelPage_2()
{
Fragment panel1 = new Fragment("myPanel1", "frag1");
add(panel1);
panel1.add(new Label("label1", "my label text"));
}
| public InlinePanelPage_2()
{
Fragment panel1 = new Fragment("myPanel1", "frag1", this);
add(panel1);
panel1.add(new Label("label1", "my label text"));
}
|
public Object convert(final Object value, Locale locale)
{
final Number number = value instanceof Number ? (Number)value : parse(value,
Double.MAX_VALUE*-1, Double.MAX_VALUE,locale);
//Double.MIN is the smallest nonzero positive number, not the largest negative number
if (numb... | public Object convert(final Object value, Locale locale)
{
final Number number = value instanceof Number ? (Number)value : parse(value,
-Double.MAX_VALUE, Double.MAX_VALUE,locale);
//Double.MIN is the smallest nonzero positive number, not the largest negative number
if (number... |
public Object convert(final Object value, Locale locale)
{
final Number number = value instanceof Number ? (Number)value : parse(value,
Float.MIN_VALUE, Float.MAX_VALUE,locale);
if (number == null)
{
return null;
}
return new Float(number.floatValue());
}
| public Object convert(final Object value, Locale locale)
{
final Number number = value instanceof Number ? (Number)value : parse(value,
-Float.MAX_VALUE, Float.MAX_VALUE,locale);
if (number == null)
{
return null;
}
return new Float(number.floatValue());
}
|
public static void main(String argv[]) {
Arguments argopt = new Arguments();
argopt.setUsage( new String[] {
"usage: java dom.DOMWriter (options) uri ...","",
"options:",
" -n | -N Turn on/off namespace [default... | public static void main(String argv[]) {
Arguments argopt = new Arguments();
argopt.setUsage( new String[] {
"usage: java dom.DOMWriter (options) uri ...","",
"options:",
" -n | -N Turn on/off namespace [default... |
public static void main(String argv[]) {
///
Arguments argopt = new Arguments();
argopt.setUsage( new String[] {
"usage: java sax.SAXWriter (options) uri ...","",
"options:",
" -n | -N Turn on/off names... | public static void main(String argv[]) {
///
Arguments argopt = new Arguments();
argopt.setUsage( new String[] {
"usage: java sax.SAXWriter (options) uri ...","",
"options:",
" -n | -N Turn on/off names... |
public static boolean requiresCloseTag(final String name)
{
return doesNotRequireCloseTag.get(name) == null;
}
| public static boolean requiresCloseTag(final String name)
{
return doesNotRequireCloseTag.get(name.toLowerCase()) == null;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.