buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public JSLPDiscoveryServiceTest() {
super(JSLPDiscoveryContainer.NAME);
}
| public JSLPDiscoveryServiceTest() {
super(JSLPDiscoveryContainer.NAME, JSLPDiscoveryContainer.REDISCOVER);
}
|
package org.eclipse.ecf.internal.provisional.docshare.cola;
/****************************************************************************
* Copyright (c) 2008 Mustafa K. Isik and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public Lic... | package org.eclipse.ecf.internal.provisional.docshare.cola;
/****************************************************************************
* Copyright (c) 2008 Mustafa K. Isik and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public Lic... |
public void printStackTrace () {
super.printStackTrace ();
if (throwable != null) {
System.err.println ("*** Stack trace of contained exception ***"); //$NON-NLS-1$
throwable.printStackTrace ();
}
}
| public void printStackTrace () {
super.printStackTrace ();
if (!SWT.IS_JDK1_4 && throwable != null) {
System.err.println ("*** Stack trace of contained exception ***"); //$NON-NLS-1$
throwable.printStackTrace ();
}
}
|
public Object put(final String key, final StringValue value)
{
return attributes.put(key.toLowerCase(), value);
}
| public Object put(final String key, final StringValue value)
{
return attributes.put(key.toLowerCase(), value.toString());
}
|
private boolean matchesAny(
TypePattern typePattern,
ResolvedTypeX[] types)
{
for (int i = types.length - 1; i >= 0; i--) {
if (typePattern.matchesExactly(types[i])) return true;
}
return false;
}
| private boolean matchesAny(
TypePattern typePattern,
ResolvedTypeX[] types)
{
for (int i = types.length - 1; i >= 0; i--) {
if (typePattern.matchesStatically(types[i])) return true;
}
return false;
}
|
public void setName(String name) {
setUserProperty("project.name", name);
this.name = name;
}
| public void setName(String name) {
setUserProperty("ant.project.name", name);
this.name = name;
}
|
private static final long serialVersionUID = 1L;
};
};
static boolean continueToOriginalDestination()
{
InterceptData data = InterceptData.get();
if (data != null)
{
data.continueOk = true;
String url = RequestCycle.get().getUrlRenderer().renderUrl(data.originalUrl);
RequestCycle.get().scheduleR... | private static final long serialVersionUID = 1L;
};
};
static boolean continueToOriginalDestination()
{
InterceptData data = InterceptData.get();
if (data != null)
{
data.continueOk = true;
String url = RequestCycle.get().getUrlRenderer().renderUrl(data.originalUrl);
RequestCycle.get().replaceCu... |
public long length()
{
throw new WicketRuntimeException("Not implemented");
}
| public long length()
{
return -1;
}
|
protected void loadProperties(ClassLoader al, URL url) {
InputStream is = null;
try {
is = url.openStream();
if (is == null) {
log("Could not load definitions from " + url,
Project.MSG_WARN);
return;
}
... | protected void loadProperties(ClassLoader al, URL url) {
InputStream is = null;
try {
is = url.openStream();
if (is == null) {
log("Could not load definitions from " + url,
Project.MSG_WARN);
return;
}
... |
public static File getResourceEntry(String resource) {
URL url = JUnitHelper.class.getResource(resource);
if (url != null) {
// can't find the resource...
return null;
}
String u = url.toString();
if (u.startsWith("jar:file:")) {
int pling ... | public static File getResourceEntry(String resource) {
URL url = JUnitHelper.class.getResource(resource);
if (url == null) {
// can't find the resource...
return null;
}
String u = url.toString();
if (u.startsWith("jar:file:")) {
int pling ... |
public void setPrefix(String prefix)
throws DOMException
{
if (needsSyncData()) {
synchronizeData();
}
if (ownerDocument().errorChecking) {
if (isReadOnly()) {
String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "... | public void setPrefix(String prefix)
throws DOMException
{
if (needsSyncData()) {
synchronizeData();
}
if (ownerDocument().errorChecking) {
if (isReadOnly()) {
String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "... |
public void setSourcefiles(String src) {
StringTokenizer tok = new StringTokenizer(src, ",");
while (tok.hasMoreTokens()) {
String f = tok.nextToken();
SourceFile sf = new SourceFile();
sf.setFile(getProject().resolveFile(f));
addSource(sf);
}
| public void setSourcefiles(String src) {
StringTokenizer tok = new StringTokenizer(src, ",");
while (tok.hasMoreTokens()) {
String f = tok.nextToken();
SourceFile sf = new SourceFile();
sf.setFile(getProject().resolveFile(f.trim()));
addSource(sf);
... |
protected void handleChildren(Object parent,
RuntimeConfigurable parentWrapper)
throws BuildException {
if (parent instanceof TaskAdapter) {
parent = ((TaskAdapter) parent).getProxy();
}
Class parentClass = parent.getClass();
... | protected void handleChildren(Object parent,
RuntimeConfigurable parentWrapper)
throws BuildException {
if (parent instanceof TaskAdapter) {
parent = ((TaskAdapter) parent).getProxy();
}
Class parentClass = parent.getClass();
... |
public void setImage (int index, Image image) {
checkWidget ();
if (image != null && image.isDisposed ()) {
error(SWT.ERROR_INVALID_ARGUMENT);
}
int count = Math.max (1, parent.getColumnCount ());
if (0 > index || index > count - 1) return;
int /*long*/ pixbuf = 0;
if (image != null) {
ImageList imageList = ... | public void setImage (int index, Image image) {
checkWidget ();
if (image != null && image.isDisposed ()) {
error(SWT.ERROR_INVALID_ARGUMENT);
}
int count = Math.max (1, parent.getColumnCount ());
if (0 > index || index > count - 1) return;
int /*long*/ pixbuf = 0;
if (image != null) {
ImageList imageList = ... |
public void setImage (int index, Image image) {
checkWidget ();
if (image != null && image.isDisposed()) {
error(SWT.ERROR_INVALID_ARGUMENT);
}
int count = Math.max (1, parent.getColumnCount ());
if (0 > index || index > count - 1) return;
int /*long*/ pixbuf = 0;
if (image != null) {
ImageList imageList = p... | public void setImage (int index, Image image) {
checkWidget ();
if (image != null && image.isDisposed()) {
error(SWT.ERROR_INVALID_ARGUMENT);
}
int count = Math.max (1, parent.getColumnCount ());
if (0 > index || index > count - 1) return;
int /*long*/ pixbuf = 0;
if (image != null) {
ImageList imageList = p... |
public void setSelection (int value) {
checkWidget();
int [] argList = {
OS.XmNminimum, 0,
OS.XmNmaximum, 0,
};
OS.XtGetValues (handle, argList, argList.length / 2);
int minimum = argList [1];
int maximum = argList [3];
int selection = value;
if (selection < minimum) selection = minimum;
if (selection > m... | public void setSelection (int value) {
checkWidget();
int [] argList = {
OS.XmNminimum, 0,
OS.XmNmaximum, 0,
};
OS.XtGetValues (handle, argList, argList.length / 2);
int minimum = argList [1];
int maximum = argList [3];
int selection = value;
if (selection < minimum) selection = minimum;
if (selection > m... |
public static void nodeMunger(StructureModel model, Shadow shadow, ShadowMunger munger) {
if (munger instanceof Advice) {
Advice a = (Advice)munger;
if (a.getKind().isPerEntry() || a.getKind().isCflow()) {
// TODO: might want to show these in the future
return;
}
IRelationshipMapper mapper = Stru... | public static void nodeMunger(StructureModel model, Shadow shadow, ShadowMunger munger) {
if (munger instanceof Advice) {
Advice a = (Advice)munger;
if (a.getKind().isPerEntry() || a.getKind().isCflow()) {
// TODO: might want to show these in the future
return;
}
IRelationshipMapper mapper = AsmM... |
private Class appletClass;
/** Extra root classes for applet JAR to handle dynamic loading */
private List/* <Class> */classes = new ArrayList(2);
| private Class appletClass;
/** Extra root classes for applet JAR to handle dynamic loading */
private List<Class> classes = new ArrayList<Class>(2);
|
public void valueChanged(TreeSelectionEvent e) {
_context.getEventBus().postEvent(new ElementSelectionEvent(
_context, _selections.getSelectedElements()));
}
}
| public void valueChanged(TreeSelectionEvent e) {
_context.getEventBus().postEvent(ElementSelectionEvent.createEvent(
_context, _selections.getSelectedElements()));
}
}
|
public boolean eventPosted(EventObject event) {
ProjectProxy project = getAppContext().getProject();
_text.setDocument(project == null ? new PlainDocument() :
project.getDocument());
return true;
}
}
| public boolean eventPosted(EventObject event) {
ProjectProxy project = getContext().getProject();
_text.setDocument(project == null ? new PlainDocument() :
project.getDocument());
return true;
}
}
|
public boolean eventPosted(EventObject event) {
ElementSelectionEvent e = (ElementSelectionEvent) event;
String text = _defText;
ProjectProxy p = getAppContext().getProject();
if(p != null) {
ElementSelectionModel selections = p.getTreeSelectionM... | public boolean eventPosted(EventObject event) {
ElementSelectionEvent e = (ElementSelectionEvent) event;
String text = _defText;
ProjectProxy p = getContext().getProject();
if(p != null) {
ElementSelectionModel selections = p.getTreeSelectionMode... |
protected synchronized void createServers(InputStream ins) throws Exception {
ServerConfigParser scp = new ServerConfigParser();
List connectors = scp.load(ins);
if (connectors != null) {
serverGroups = new TCPServerSOContainerGroup[connectors.size()];
int j = 0;
for (Iterator i = connectors.iterator();... | protected synchronized void createServers(InputStream ins) throws Exception {
ServerConfigParser scp = new ServerConfigParser();
List connectors = scp.load(ins);
if (connectors != null) {
serverGroups = new TCPServerSOContainerGroup[connectors.size()];
int j = 0;
for (Iterator i = connectors.iterator();... |
private int traverseAttributeDecl( Element attrDecl, ComplexTypeInfo typeInfo, boolean referredTo ) throws Exception {
// General Attribute Checking
int scope = isTopLevel(attrDecl)?
GeneralAttrCheck.ELE_CONTEXT_GLOBAL:
GeneralAttrCheck.ELE_CONTEXT_LOCAL;
... | private int traverseAttributeDecl( Element attrDecl, ComplexTypeInfo typeInfo, boolean referredTo ) throws Exception {
// General Attribute Checking
int scope = isTopLevel(attrDecl)?
GeneralAttrCheck.ELE_CONTEXT_GLOBAL:
GeneralAttrCheck.ELE_CONTEXT_LOCAL;
... |
public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget();
Rectangle trim = super.computeTrim (x, y, width, height);
int border = 0;
if ((style & (SWT.NO_TRIM | SWT.BORDER | SWT.SHELL_TRIM)) == 0) {
border = OS.gtk_container_get_border_width (shellHandle);
}
if (isCustomResize ()) {
b... | public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget();
Rectangle trim = super.computeTrim (x, y, width, height);
int border = 0;
if ((style & (SWT.NO_TRIM | SWT.BORDER | SWT.SHELL_TRIM)) == 0) {
border = OS.gtk_container_get_border_width (shellHandle);
}
if (isCustomResize ()) {
b... |
public Object evaluateInternal(ExecutionContext ctx) {
final Object left = _left.evaluate(ctx);
if (left == null) {
ctx.logNullDeRef (getPos());
return null;
}
if (Boolean.FALSE.equals (left))
return Boolean.FALSE;
fin... | protected Object evaluateInternal(ExecutionContext ctx) {
final Object left = _left.evaluate(ctx);
if (left == null) {
ctx.logNullDeRef (getPos());
return null;
}
if (Boolean.FALSE.equals (left))
return Boolean.FALSE;
... |
public Object evaluateInternal(ExecutionContext ctx) {
final List<Object> params = new ArrayList<Object>();
for (ExpressionBase e: _paramExpr)
params.add (e.evaluate(ctx));
return ctx.getCreationCache().createRaw (_t, params);
}
} | protected Object evaluateInternal(ExecutionContext ctx) {
final List<Object> params = new ArrayList<Object>();
for (ExpressionBase e: _paramExpr)
params.add (e.evaluate(ctx));
return ctx.getCreationCache().createRaw (_t, params);
}
} |
public Object evaluateInternal(ExecutionContext ctx) {
return _t.create();
}
} | protected Object evaluateInternal(ExecutionContext ctx) {
return _t.create();
}
} |
public Object evaluateInternal(ExecutionContext ctx) {
return ctx.getGlobalVarContext().getGlobalVars().get (_varName);
}
} | protected Object evaluateInternal(ExecutionContext ctx) {
return ctx.getGlobalVarContext().getGlobalVars().get (_varName);
}
} |
public Object evaluateInternal(ExecutionContext ctx) {
final Object oldValue = ctx.getLocalVarContext().getLocalVars().get(_localVarName);
ctx.getLocalVarContext().getLocalVars().put (_localVarName, _defExpression.evaluate(ctx));
try {
return _inner.evaluate(ctx);
}
... | protected Object evaluateInternal(ExecutionContext ctx) {
final Object oldValue = ctx.getLocalVarContext().getLocalVars().get(_localVarName);
ctx.getLocalVarContext().getLocalVars().put (_localVarName, _defExpression.evaluate(ctx));
try {
return _inner.evaluate(ctx);
}
... |
public Object evaluateInternal (ExecutionContext ctx) {
final Object cond = _cond.evaluate(ctx);
if (cond == null) {
ctx.logNullDeRef (getPos());
return null;
}
if (Boolean.TRUE.equals (cond))
return _if.evaluate(ctx);
els... | protected Object evaluateInternal (ExecutionContext ctx) {
final Object cond = _cond.evaluate(ctx);
if (cond == null) {
ctx.logNullDeRef (getPos());
return null;
}
if (Boolean.TRUE.equals (cond))
return _if.evaluate(ctx);
... |
public Object evaluateInternal(ExecutionContext ctx) {
return new Closure (ctx.getLocalVarContext(), ctx.getFunctionDefContext(), _paramNames, _paramTypes, _def);
}
} | protected Object evaluateInternal(ExecutionContext ctx) {
return new Closure (ctx.getLocalVarContext(), ctx.getFunctionDefContext(), _paramNames, _paramTypes, _def);
}
} |
public Object evaluateInternal(ExecutionContext ctx) {
final Collection<?> coll = (Collection<?>) _coll.evaluate(ctx);
if (coll == null) {
ctx.logNullDeRef (getPos());
return null;
}
final List<Object> params = new ArrayList<Object>();
... | protected Object evaluateInternal(ExecutionContext ctx) {
final Collection<?> coll = (Collection<?>) _coll.evaluate(ctx);
if (coll == null) {
ctx.logNullDeRef (getPos());
return null;
}
final List<Object> params = new ArrayList<Object>();
... |
public Object evaluateInternal(ExecutionContext ctx) {
final List<Object> params = new ArrayList<Object> ();
for (ExpressionBase expr: _params)
params.add (expr.evaluate(ctx));
return ctx.getFunctionDefContext().invoke (ctx, _functionName, params);
}
} | protected Object evaluateInternal(ExecutionContext ctx) {
final List<Object> params = new ArrayList<Object> ();
for (ExpressionBase expr: _params)
params.add (expr.evaluate(ctx));
return ctx.getFunctionDefContext().invoke (ctx, _functionName, params);
}
} |
public Object evaluateInternal(ExecutionContext ctx) {
final List<Object> params = new ArrayList<Object> ();
for (ExpressionBase expr: _params)
params.add (expr.evaluate(ctx));
if (params.get (0) instanceof Collection<?>) {
// check if this is a function on Collection i... | protected Object evaluateInternal(ExecutionContext ctx) {
final List<Object> params = new ArrayList<Object> ();
for (ExpressionBase expr: _params)
params.add (expr.evaluate(ctx));
if (params.get (0) instanceof Collection<?>) {
// check if this is a function on Collectio... |
public Object evaluateInternal(ExecutionContext ctx) {
return _value;
}
} | protected Object evaluateInternal(ExecutionContext ctx) {
return _value;
}
} |
public Object evaluateInternal(ExecutionContext ctx) {
//expects a static check to have been performed that a local variable of this name exists
return ctx.getLocalVarContext().getLocalVars().get (_localVarName);
}
} | protected Object evaluateInternal(ExecutionContext ctx) {
//expects a static check to have been performed that a local variable of this name exists
return ctx.getLocalVarContext().getLocalVars().get (_localVarName);
}
} |
public Object evaluateInternal(ExecutionContext ctx) {
ctx.getLocalVarContext().getLocalVars().put (_localVarName, _defExpression.evaluate(ctx));
try {
return _inner.evaluate(ctx);
}
finally {
ctx.getLocalVarContext().getLocalVars().remove(_localVarName);
... | protected Object evaluateInternal(ExecutionContext ctx) {
ctx.getLocalVarContext().getLocalVars().put (_localVarName, _defExpression.evaluate(ctx));
try {
return _inner.evaluate(ctx);
}
finally {
ctx.getLocalVarContext().getLocalVars().remove(_localVarName);
... |
public Object evaluateInternal(ExecutionContext ctx) {
final Object left = _left.evaluate(ctx);
if (left == null) {
ctx.logNullDeRef (getPos());
return null;
}
if (Boolean.TRUE.equals (left))
return Boolean.TRUE;
final... | protected Object evaluateInternal(ExecutionContext ctx) {
final Object left = _left.evaluate(ctx);
if (left == null) {
ctx.logNullDeRef (getPos());
return null;
}
if (Boolean.TRUE.equals (left))
return Boolean.TRUE;
fi... |
public Object evaluateInternal(ExecutionContext ctx) {
final Collection<?> coll = (Collection<?>) _inner.evaluate(ctx);
if (coll == null) {
ctx.logNullDeRef (getPos());
return null;
}
final Collection<Object> result = (coll instanceof List) ? new ArrayList<Ob... | protected Object evaluateInternal(ExecutionContext ctx) {
final Collection<?> coll = (Collection<?>) _inner.evaluate(ctx);
if (coll == null) {
ctx.logNullDeRef (getPos());
return null;
}
final Collection<Object> result = (coll instanceof List) ? new ArrayList... |
public Object evaluateInternal(ExecutionContext ctx) {
final Object o = _inner.evaluate(ctx);
if (o == null) {
ctx.logNullDeRef (getPos());
return null;
}
return ctx.getTypesystem().findType(o).getProperty(ctx, o, _propertyName);
}
} | protected Object evaluateInternal(ExecutionContext ctx) {
final Object o = _inner.evaluate(ctx);
if (o == null) {
ctx.logNullDeRef (getPos());
return null;
}
return ctx.getTypesystem().findType(o).getProperty(ctx, o, _propertyName);
}
} |
public Object evaluateInternal(ExecutionContext ctx) {
Object result = null;
for (ExpressionBase e: _inner)
result = e.evaluate(ctx);
return result;
}
} | protected Object evaluateInternal(ExecutionContext ctx) {
Object result = null;
for (ExpressionBase e: _inner)
result = e.evaluate(ctx);
return result;
}
} |
public Object evaluateInternal(ExecutionContext ctx) {
final Object o = _inner.evaluate(ctx);
if (o == null) {
ctx.logNullDeRef (getPos());
return null;
}
final BackendType t = ctx.getTypesystem().findType(o);
final Object value = _valueExpr.e... | protected Object evaluateInternal(ExecutionContext ctx) {
final Object o = _inner.evaluate(ctx);
if (o == null) {
ctx.logNullDeRef (getPos());
return null;
}
final BackendType t = ctx.getTypesystem().findType(o);
final Object value = _valueExp... |
public int getLineCount () {
checkWidget();
if ((style & SWT.SINGLE) != 0) return 1;
return ((NSTextView)view).textStorage().paragraphs().count();
}
| public int getLineCount () {
checkWidget();
if ((style & SWT.SINGLE) != 0) return 1;
return ((NSTextView)view).textStorage().paragraphs().count() + 1;
}
|
public void testPlatform() {
OpenJPAEntityManagerFactory pmf =
(OpenJPAEntityManagerFactory) getEmf();
assertNotNull(pmf.getProperties().getProperty("Platform"));
}
| public void testPlatform() {
OpenJPAEntityManagerFactory pmf =
(OpenJPAEntityManagerFactory) getEmf();
assertNotNull(pmf.getProperties().get("Platform"));
}
|
protected final void onPopulate()
{
if (size() == 0 || recreateChoices)
{
// populate this repeating view with SelectOption components
removeAll();
Collection<? extends T> modelObject = (Collection<? extends T>)getDefaultModelObject();
if (modelObject != null)
{
if (!(modelObject instanceof C... | protected final void onPopulate()
{
if (size() == 0 || recreateChoices)
{
// populate this repeating view with SelectOption components
removeAll();
Collection<? extends T> modelObject = (Collection<? extends T>)getDefaultModelObject();
if (modelObject != null)
{
if (!(modelObject instanceof C... |
public static AnnotationTypePattern read(DataInputStream s, ISourceContext context) throws IOException {
byte key = s.readByte();
switch(key) {
case EXACT: return ExactAnnotationTypePattern.read(s, context);
// case BINDING: return BindingAnnotationTypePattern.read(s, context);
case NOT: return NotAnnotati... | public static AnnotationTypePattern read(DataInputStream s, ISourceContext context) throws IOException {
byte key = s.readByte();
switch(key) {
case EXACT: return ExactAnnotationTypePattern.read(s, context);
case BINDING: return BindingAnnotationTypePattern.read(s, context);
case NOT: return NotAnnotationTyp... |
private Pointcut parseThisOrTargetAnnotationPointcut() {
String kind = parseIdentifier();
eat("(");
if (maybeEat(")")) {
throw new ParserException("expecting @AnnotationName or parameter, but found ')'", tokenSource.peek());
}
AnnotationTypePattern type = parseAnnotationNameOrVarTypePattern();
eat(")")... | private Pointcut parseThisOrTargetAnnotationPointcut() {
String kind = parseIdentifier();
eat("(");
if (maybeEat(")")) {
throw new ParserException("expecting @AnnotationName or parameter, but found ')'", tokenSource.peek());
}
ExactAnnotationTypePattern type = parseAnnotationNameOrVarTypePattern();
eat(... |
protected void runCommand(Commandline toExecute) throws BuildException {
// XXX: we should use JCVS (www.ice.com/JCVS) instead of
// command line execution so that we don't rely on having
// native CVS stuff around (SM)
// We can't do it ourselves as jCVS is GPLed, a third party tas... | protected void runCommand(Commandline toExecute) throws BuildException {
// XXX: we should use JCVS (www.ice.com/JCVS) instead of
// command line execution so that we don't rely on having
// native CVS stuff around (SM)
// We can't do it ourselves as jCVS is GPLed, a third party tas... |
public static void runCommand(Task task, String[] cmdline)
throws BuildException {
try {
task.log(Commandline.describeCommand(cmdline),
Project.MSG_VERBOSE);
Execute exe = new Execute(new LogStreamHandler(task,
... | public static void runCommand(Task task, String[] cmdline)
throws BuildException {
try {
task.log(Commandline.describeCommand(cmdline),
Project.MSG_VERBOSE);
Execute exe = new Execute(new LogStreamHandler(task,
... |
public void execute() throws BuildException {
if ("javadoc2".equals(getTaskType())) {
log("!! javadoc2 is deprecated. Use javadoc instead. !!");
}
Vector packagesToDoc = new Vector();
Path sourceDirs = new Path(getProject());
if (packageList != null && sourcePat... | public void execute() throws BuildException {
if ("javadoc2".equals(getTaskType())) {
log("!! javadoc2 is deprecated. Use javadoc instead. !!");
}
Vector packagesToDoc = new Vector();
Path sourceDirs = new Path(getProject());
if (packageList != null && sourcePat... |
public void execute() throws BuildException {
validateAttributes();
//TODO: use ANTLR to parse the grammar file to do this.
File generatedFile = getGeneratedFile();
boolean targetIsOutOfDate =
target.lastModified() > generatedFile.lastModified();
boolean superGra... | public void execute() throws BuildException {
validateAttributes();
//TODO: use ANTLR to parse the grammar file to do this.
File generatedFile = getGeneratedFile();
boolean targetIsOutOfDate =
target.lastModified() > generatedFile.lastModified();
boolean superGra... |
public void execute() throws BuildException {
checkConfiguration();
Vector files = getFileList();
// quick exit if the target is up to date
if (isUpToDate(files)) {
return;
}
log("Building " + archiveType + ": " + cabFile.getAbsolutePath());
i... | public void execute() throws BuildException {
checkConfiguration();
Vector files = getFileList();
// quick exit if the target is up to date
if (isUpToDate(files)) {
return;
}
log("Building " + archiveType + ": " + cabFile.getAbsolutePath());
i... |
public void runCommand()
throws BuildException {
int err = -1;
// assume the worst
try {
if (traceCommandLine) {
owner.log(commandLine.describeCommand());
} else {
//in verbose mode we always log stuff
logVe... | public void runCommand()
throws BuildException {
int err = -1;
// assume the worst
try {
if (traceCommandLine) {
owner.log(commandLine.describeCommand());
} else {
//in verbose mode we always log stuff
logVe... |
private void buildBorlandStubs(Iterator ithomes) {
Execute execTask = null;
execTask = new Execute(this);
Project project = getTask().getProject();
execTask.setAntRun(project);
execTask.setWorkingDirectory(project.getBaseDir());
Commandline commandline = new Command... | private void buildBorlandStubs(Iterator ithomes) {
Execute execTask = null;
execTask = new Execute(this);
Project project = getTask().getProject();
execTask.setAntRun(project);
execTask.setWorkingDirectory(project.getBaseDir());
Commandline commandline = new Command... |
public void execute() throws BuildException {
// load command line with optional attributes
Enumeration iter = optionalAttrs.keys();
while (iter.hasMoreElements()) {
String name = (String) iter.nextElement();
Object value = optionalAttrs.get(name);
cmdl.... | public void execute() throws BuildException {
// load command line with optional attributes
Enumeration iter = optionalAttrs.keys();
while (iter.hasMoreElements()) {
String name = (String) iter.nextElement();
Object value = optionalAttrs.get(name);
cmdl.... |
public void execute() throws BuildException {
// load command line with optional attributes
Enumeration iter = optionalAttrs.keys();
while (iter.hasMoreElements()) {
String name = (String) iter.nextElement();
Object value = optionalAttrs.get(name);
cmdl.... | public void execute() throws BuildException {
// load command line with optional attributes
Enumeration iter = optionalAttrs.keys();
while (iter.hasMoreElements()) {
String name = (String) iter.nextElement();
Object value = optionalAttrs.get(name);
cmdl.... |
protected void execute0(ExecuteStreamHandler handler) throws BuildException {
final Execute process = new Execute(handler);
log(cmdl.describeCommand(), Project.MSG_VERBOSE);
process.setCommandline(cmdl.getCommandline());
try {
if (process.execute() != 0) {
... | protected void execute0(ExecuteStreamHandler handler) throws BuildException {
final Execute process = new Execute(handler);
log(cmdl.describeCommand(), Project.MSG_VERBOSE);
process.setCommandline(cmdl.getCommandline());
try {
if (Execute.isFailure(process.execute())) {
... |
protected void _execute(ExecuteStreamHandler handler) throws BuildException {
// target has been checked as a .jj, see if there is a matching
// java file and if it is needed to run to process the grammar
String pathname = target.getAbsolutePath();
int pos = pathname.length() - ".jj"... | protected void _execute(ExecuteStreamHandler handler) throws BuildException {
// target has been checked as a .jj, see if there is a matching
// java file and if it is needed to run to process the grammar
String pathname = target.getAbsolutePath();
int pos = pathname.length() - ".jj"... |
public void execute() throws org.apache.tools.ant.BuildException {
int result = 0;
if (repository == null || repository.trim().equals("")) {
throw new BuildException("Required argument repository not specified");
}
// Check workspace exists
// Launch PCLI listve... | public void execute() throws org.apache.tools.ant.BuildException {
int result = 0;
if (repository == null || repository.trim().equals("")) {
throw new BuildException("Required argument repository not specified");
}
// Check workspace exists
// Launch PCLI listve... |
public void execute() throws BuildException {
checkOptions();
File paramfile = createParamFile();
try {
Commandline cmdl = new Commandline();
cmdl.setExecutable(findExecutable("jpcovmerge"));
if (verbose) {
cmdl.createArgument().setValue("... | public void execute() throws BuildException {
checkOptions();
File paramfile = createParamFile();
try {
Commandline cmdl = new Commandline();
cmdl.setExecutable(findExecutable("jpcovmerge"));
if (verbose) {
cmdl.createArgument().setValue("... |
public void execute() throws BuildException {
checkOptions();
try {
Commandline cmdl = new Commandline();
// we need to run Coverage from his directory due to dll/jar issues
cmdl.setExecutable(findExecutable("jpcovreport"));
String[] params = getParame... | public void execute() throws BuildException {
checkOptions();
try {
Commandline cmdl = new Commandline();
// we need to run Coverage from his directory due to dll/jar issues
cmdl.setExecutable(findExecutable("jpcovreport"));
String[] params = getParame... |
public void execute() throws BuildException {
File paramfile = null;
// if an input file is used, all other options are ignored...
if (inputFile == null) {
checkOptions();
paramfile = createParamFile();
} else {
paramfile = inputFile;
}
... | public void execute() throws BuildException {
File paramfile = null;
// if an input file is used, all other options are ignored...
if (inputFile == null) {
checkOptions();
paramfile = createParamFile();
} else {
paramfile = inputFile;
}
... |
public void execute() throws BuildException {
int result = 0;
Commandline commandLine = buildCmdLine();
result = run(commandLine);
if (result != 0 && getFailOnError()) {
String msg = "Failed executing: " + formatCommandLine(commandLine)
+ " With a ret... | public void execute() throws BuildException {
int result = 0;
Commandline commandLine = buildCmdLine();
result = run(commandLine);
if (Execute.isFailure(result) && getFailOnError()) {
String msg = "Failed executing: " + formatCommandLine(commandLine)
... |
protected void handleShellCloseEvent() {
if (!getShell().isDisposed()) {
if (!disposed) {
chat.dispose();
chat = null;
getShell().dispose();
} else {
getShell().setVisible(false);
}
}
}
| protected void handleShellCloseEvent() {
if (!getShell().isDisposed()) {
if (disposed) {
chat.dispose();
chat = null;
getShell().dispose();
} else {
getShell().setVisible(false);
}
}
}
|
public void deselectAll () {
checkWidget ();
NSTableView widget = (NSTableView)view;
ignoreSelect = true;
widget.deselectAll(null);
ignoreSelect = false;
}
void destroyItem (TableColumn column) {
int index = 0;
while (index < columnCount) {
if (columns [index] == column) break;
index++;
}
for (int i=0; i<... | public void deselectAll () {
checkWidget ();
NSTableView widget = (NSTableView)view;
ignoreSelect = true;
widget.deselectAll(null);
ignoreSelect = false;
}
void destroyItem (TableColumn column) {
int index = 0;
while (index < columnCount) {
if (columns [index] == column) break;
index++;
}
for (int i=0; i<... |
public void deselect (TreeItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
NSOutlineView widget = (NSOutlineView)view;
int /*long*/ row = widget.rowForItem(item.handle);
ignoreSelect = true;
widget.deselectRow (row);
igno... | public void deselect (TreeItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
NSOutlineView widget = (NSOutlineView)view;
int /*long*/ row = widget.rowForItem(item.handle);
ignoreSelect = true;
widget.deselectRow (row);
igno... |
public boolean getSimple() {
checkWidget();
return simple;
}
void onDispose() {
if (resizeCursor != null) resizeCursor.dispose();
resizeCursor = null;
left = null;
right = null;
}
void onMouseDown (int x, int y) {
if (curveRect.contains(x, y)) {
dragging = true;
rightDragDisplacement = curveStart - x + curve... | public boolean getSimple() {
checkWidget();
return simple;
}
void onDispose() {
if (resizeCursor != null) resizeCursor.dispose();
resizeCursor = null;
left = null;
right = null;
}
void onMouseDown (int x, int y) {
if (curveRect.contains(x, y)) {
dragging = true;
rightDragDisplacement = curveStart - x + curve... |
public BorderRenderWrappedTestPage_1()
{
BoxBorder border = new BoxBorder(this, "box");
MarkupContainer body = border.newBorderBodyContainer(border);
body.setVisible(false);
new TextField(border, "text");
new Image(border, "img");
}
| public BorderRenderWrappedTestPage_1()
{
BoxBorder border = new BoxBorder(this, "box");
MarkupContainer body = border.setBorderBodyContainer(border);
body.setVisible(false);
new TextField(border, "text");
new Image(border, "img");
}
|
public final void execute() throws BuildException {
//validation
if (src == null) {
throw new BuildException("A source resource is required.");
}
if (!src.isExists()) {
if (src instanceof JavaResource) {
// dreaded backwards compatibility
... | public final void execute() throws BuildException {
//validation
if (src == null) {
throw new BuildException("A source resource is required.");
}
if (!src.isExists()) {
if (src instanceof JavaResource) {
// dreaded backwards compatibility
... |
private String assembleImportExportParams(
File dir,
String[] includePatterns, String[] excludePatterns,
boolean includeClasses, boolean includeResources,
... | private String assembleImportExportParams(
File dir,
String[] includePatterns, String[] excludePatterns,
boolean includeClasses, boolean includeResources,
... |
public ServiceEndpointDescriptionHelper(ServiceEndpointDescriptionImpl d)
throws NullPointerException {
description = d;
// Get ECF discovery container ID...if not found there is a problem
localDiscoveryContainerID = description.getLocalDiscoveryContainerID();
if (localDiscoveryContainerID == null)
throw... | public ServiceEndpointDescriptionHelper(ServiceEndpointDescriptionImpl d)
throws NullPointerException {
description = d;
// Get ECF discovery container ID...if not found there is a problem
localDiscoveryContainerID = description.getLocalDiscoveryContainerID();
if (localDiscoveryContainerID == null)
throw... |
public void executeTest(final Class pageClass, final String filename) throws Exception
{
System.out.println("=== " + pageClass.getName() + " ===");
application = new MockWebApplication(null);
application.getPages().setHomePage(pageClass);
// Do the processing
application.setupRequestAndResponse();
app... | public void executeTest(final Class pageClass, final String filename) throws Exception
{
System.out.println("=== " + pageClass.getName() + " ===");
application = new MockWebApplication(null);
application.getPages().setHomePage(pageClass);
// Do the processing
application.setupRequestAndResponse();
app... |
public String removeLeadingPath(File leading, File path) {
String l = normalize(leading.getAbsolutePath()).getAbsolutePath();
String p = normalize(path.getAbsolutePath()).getAbsolutePath();
if (l.equals(p)) {
return "";
}
// ensure that l ends with a /
//... | public String removeLeadingPath(File leading, File path) {
String l = normalize(leading.getAbsolutePath()).getAbsolutePath();
String p = normalize(path.getAbsolutePath()).getAbsolutePath();
if (l.equals(p)) {
return "";
}
// ensure that l ends with a /
//... |
public DataSourceElementBeanInfo() {
super(DataSourceElement.class);
createPropertyGroup("varName", new String[] { "dataSource" });
createPropertyGroup("pool", new String[] { "poolMax", "timeout",
"trimInterval", "autocommit", "transactionIsolation" });
creat... | public DataSourceElementBeanInfo() {
super(DataSourceElement.class);
createPropertyGroup("varName", new String[] { "dataSource" });
createPropertyGroup("pool", new String[] { "poolMax", "timeout",
"trimInterval", "autocommit", "transactionIsolation" });
creat... |
public boolean includes(AnnotatedElement obj) {
Access access = obj.getAnnotation(Access.class);
return access != null && access.equals(target);
}
}
| public boolean includes(AnnotatedElement obj) {
Access access = obj.getAnnotation(Access.class);
return access != null && access.value().equals(target);
}
}
|
public void configure(TestElement el)
{
super.configure(el);
functionalMode.setSelected(((AbstractTestElement) el).getPropertyAsBoolean(TestPlan.FUNCTIONAL_MODE));
if (el.getProperty(TestPlan.USER_DEFINED_VARIABLES) != null)
{
argsPanel.configure((Arguments) el.getPro... | public void configure(TestElement el)
{
super.configure(el);
functionalMode.setSelected(((AbstractTestElement) el).getPropertyAsBoolean(TestPlan.FUNCTIONAL_MODE));
if (el.getProperty(TestPlan.USER_DEFINED_VARIABLES) != null)
{
argsPanel.configure((Arguments) el.getPro... |
private ListedHashTree cloneTree(ListedHashTree tree)
{
TreeCloner cloner = new TreeCloner();
tree.traverse(cloner);
return cloner.getClonedTree();
}
| private ListedHashTree cloneTree(ListedHashTree tree)
{
TreeCloner cloner = new TreeCloner(false);
tree.traverse(cloner);
return cloner.getClonedTree();
}
|
private JMeterGUIComponent generateGUIComponent(TestElement item) throws Exception
{
JMeterGUIComponent gui = null;
try {
gui = (JMeterGUIComponent)Class.forName((String)item.getProperty(TestElement.GUI_CLASS)).newInstance();
} catch(Exception e) {
log.warn("Couldn't get gui for "+item,e);
gui = ... | private JMeterGUIComponent generateGUIComponent(TestElement item) throws Exception
{
JMeterGUIComponent gui = null;
try {
gui = (JMeterGUIComponent)Class.forName(item.getPropertyAsString(TestElement.GUI_CLASS)).newInstance();
} catch(Exception e) {
log.warn("Couldn't get gui for "+item,e);
gui = ... |
public void configure(TestElement element)
{
super.configure(element);
urlConfigGui.configure(element);
String testClass = (String)element.getProperty(TestElement.TEST_CLASS);
if(testClass != null && testClass.endsWith("Full"))
{
getImages.setSelected(true);
}
else
{
getImages.setSelected(false)... | public void configure(TestElement element)
{
super.configure(element);
urlConfigGui.configure(element);
String testClass = element.getPropertyAsString(TestElement.TEST_CLASS);
if(testClass != null && testClass.endsWith("Full"))
{
getImages.setSelected(true);
}
else
{
getImages.setSelected(false)... |
public SampleResult sample(Entry e)
{
DBKey key = getKey();
long start;
long end;
long time;
time = start = end = 0;
SampleResult res = new SampleResult();
Connection con = null;
ResultSet rs = null;
Statement stmt = null;
Data data... | public SampleResult sample(Entry e)
{
DBKey key = getKey();
long start;
long end;
long time;
time = start = end = 0;
SampleResult res = new SampleResult();
Connection con = null;
ResultSet rs = null;
Statement stmt = null;
Data data... |
private void initValidator() {
try {
// load the parser class
// with JAXP, we would use a SAXParser factory
Class readerClass= null;
//Class readerImpl = null;
//Class parserImpl = null;
if (classpath != null) {
AntCla... | private void initValidator() {
try {
// load the parser class
// with JAXP, we would use a SAXParser factory
Class readerClass= null;
//Class readerImpl = null;
//Class parserImpl = null;
if (classpath != null) {
AntCla... |
public Browser (Composite parent, int style) {
super (checkParent (parent), style = checkStyle (style));
String platform = SWT.getPlatform ();
Display display = parent.getDisplay ();
if ("gtk".equals (platform)) display.setData (NO_INPUT_METHOD, null); //$NON-NLS-1$
String className = null;
if ((style & SWT.MOZIL... | public Browser (Composite parent, int style) {
super (checkParent (parent), checkStyle (style));
String platform = SWT.getPlatform ();
Display display = parent.getDisplay ();
if ("gtk".equals (platform)) display.setData (NO_INPUT_METHOD, null); //$NON-NLS-1$
String className = null;
if ((style & SWT.MOZILLA) != 0... |
protected void waitForDone(int timeout) throws Exception {
final long start = System.currentTimeMillis();
synchronized (lock) {
while (!done && ((System.currentTimeMillis() - start) < timeout)) {
lock.wait(timeout / 20);
}
if (!done)
throw new TimeoutException(new Status(IStatus.ERROR,Activator.PL... | protected void waitForDone(int timeout) throws Exception {
final long start = System.currentTimeMillis();
synchronized (lock) {
while (!done && ((System.currentTimeMillis() - start) < timeout)) {
lock.wait(timeout / 20);
}
if (!done)
throw new TimeoutException(timeout);
}
}
|
public MarkupElement nextTag() throws ParseException
{
// Get the next tag from the markup.
// If null, no more tags are available
XmlTag xmlTag = (XmlTag)getParent().nextTag();
if (xmlTag == null)
{
return xmlTag;
}
final String namespace = this.markup.getWicketNamespace();
// Identify tags with... | public MarkupElement nextTag() throws ParseException
{
// Get the next tag from the markup.
// If null, no more tags are available
XmlTag xmlTag = (XmlTag)getParent().nextTag();
if (xmlTag == null)
{
return xmlTag;
}
final String namespace = this.markup.getWicketNamespace();
// Identify tags with... |
public String getText () {
checkWidget ();
return text;
}
Rect getInset () {
if ((style & SWT.PUSH) == 0) return super.getInset();
return display.buttonInset;
}
int kEventControlHit (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlHit (nextHandler, theEvent, userData);
if (result ... | public String getText () {
checkWidget ();
return text;
}
Rect getInset () {
if ((style & SWT.PUSH) == 0) return super.getInset();
return display.buttonInset;
}
int kEventControlHit (int nextHandler, int theEvent, int userData) {
int result = super.kEventControlHit (nextHandler, theEvent, userData);
if (result ... |
public ResolvedType resolve(UnresolvedType ty, boolean allowMissing) {
if (ty instanceof ResolvedType) {
ResolvedType rty = (ResolvedType) ty;
rty.world = this;
return rty;
}
//System.out.println("resolve: " + ty + " world " + typeMap.keySet());
if (ty instanceof UnresolvedT... | public ResolvedType resolve(UnresolvedType ty, boolean allowMissing) {
if (ty instanceof ResolvedType) {
ResolvedType rty = (ResolvedType) ty;
rty.world = this;
return rty;
}
//System.out.println("resolve: " + ty + " world " + typeMap.keySet());
if (ty instanceof UnresolvedT... |
private UnknownElement copy(UnknownElement ue) {
UnknownElement ret = new UnknownElement(ue.getTag());
ret.setNamespace(ue.getNamespace());
ret.setProject(getProject());
ret.setQName(ue.getQName());
ret.setTaskName(ue.getTaskName());
ret.setLocation(ue.getLocation());... | private UnknownElement copy(UnknownElement ue) {
UnknownElement ret = new UnknownElement(ue.getTag());
ret.setNamespace(ue.getNamespace());
ret.setProject(getProject());
ret.setQName(ue.getQName());
ret.setTaskName(ue.getTaskName());
ret.setLocation(ue.getLocation());... |
public FontData[] getFontData() {
if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
int fontFamily = OS.Typeface_FontFamily(handle);
int style = OS.Typeface_Style(handle);
int weight = OS.Typeface_Weight(handle);
int stretch = OS.Typeface_Stretch(handle);
int str = OS.FontFamily_Source(fontFamily);
int ch... | public FontData[] getFontData() {
if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
int fontFamily = OS.Typeface_FontFamily(handle);
int style = OS.Typeface_Style(handle);
int weight = OS.Typeface_Weight(handle);
int stretch = OS.Typeface_Stretch(handle);
int str = OS.FontFamily_Source(fontFamily);
int ch... |
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("1|"); //$NON-NLS-1$
buffer.append(getName());
buffer.append("|"); //$NON-NLS-1$
buffer.append(getHeight());
buffer.append("|"); //$NON-NLS-1$
buffer.append(getStyle());
buffer.append("|"); //$NON-NLS-1$
buffer.append("WPF|1|");... | public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("1|"); //$NON-NLS-1$
buffer.append(getName());
buffer.append("|"); //$NON-NLS-1$
buffer.append(getHeight());
buffer.append("|"); //$NON-NLS-1$
buffer.append(getStyle());
buffer.append("|"); //$NON-NLS-1$
buffer.append("WPF|1|");... |
public FileDialog (Shell parent, int style) {
super (parent, style);
checkSubclass ();
}
String createJavaString (int ptr) {
int charArray = OS.String_ToCharArray (ptr);
char [] chars = new char[OS.String_Length (ptr)];
OS.memmove (chars, charArray, chars.length * 2);
return new String (chars);
}
| public FileDialog (Shell parent, int style) {
super (parent, style);
checkSubclass ();
}
String createJavaString (int ptr) {
int charArray = OS.String_ToCharArray (ptr);
char [] chars = new char[OS.String_Length (ptr)];
OS.memcpy (chars, charArray, chars.length * 2);
return new String (chars);
}
|
public final File writeToTempFile() throws IOException
{
File temp = File.createTempFile(Session.get().getId(), item.getFieldName());
writeTo(temp);
return temp;
}
/**
* Close the streams which has been opened when getting the InputStream
* using {@link #getInputStream()}. All the input streams are close... | public final void closeStreams()
{
if (inputStreams != null)
{
for (Iterator inputStreamsIterator = inputStreams.iterator(); inputStreamsIterator.hasNext();)
{
InputStream inputStream = (InputStream)inputStreamsIterator.next();
try
{
inputStream.close();
}
catch (IOException e)
... |
public AbstractStringResourceStream(final String contentType)
{
// TODO null for contentType is allowed? or should the default be applied instead?
this.contentType = contentType;
setLastModified(Time.now());
}
| public AbstractStringResourceStream(final String contentType)
{
// TODO null for contentType is allowed? or should the default be applied instead?
this.contentType = contentType;
lastModified = Time.now();
}
|
private static final String RETURN_URL_PARAM = "ret";
static final Vector<BarcodeFormat> PRODUCT_FORMATS;
static final Vector<BarcodeFormat> ONE_D_FORMATS;
static final Vector<BarcodeFormat> QR_CODE_FORMATS;
static final Vector<BarcodeFormat> ALL_FORMATS;
static {
PRODUCT_FORMATS = new Vector<BarcodeF... | private static final String RETURN_URL_PARAM = "ret";
static final Vector<BarcodeFormat> PRODUCT_FORMATS;
static final Vector<BarcodeFormat> ONE_D_FORMATS;
static final Vector<BarcodeFormat> QR_CODE_FORMATS;
static final Vector<BarcodeFormat> ALL_FORMATS;
static {
PRODUCT_FORMATS = new Vector<BarcodeF... |
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse)
throws IOException, ServletException
{
}
});
assertEquals((Integer)HttpServletResponse.SC_NOT_MODIFIED, response.getStatus());
String responseExpiresHeader = response.getHeader("Expires");
assertNotNull("Ex... | public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse)
throws IOException, ServletException
{
}
});
assertEquals(HttpServletResponse.SC_NOT_MODIFIED, response.getStatus());
String responseExpiresHeader = response.getHeader("Expires");
assertNotNull("Expires hea... |
private void printHead(PrintWriter out, Enumeration tasks,
Enumeration types) {
out.println("<?xml version=\"1.0\" ?>");
out.println("<!ENTITY % boolean \"(true|false|on|off|yes|no)\">");
out.print("<!ENTITY % tasks \"");
boolean first = true;
whil... | private void printHead(PrintWriter out, Enumeration tasks,
Enumeration types) {
out.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
out.println("<!ENTITY % boolean \"(true|false|on|off|yes|no)\">");
out.print("<!ENTITY % tasks \"");
boolean first =... |
public boolean execute() throws BuildException {
attributes.log("Using modern compiler", Project.MSG_VERBOSE);
Commandline cmd = setupJavacCommand();
// Use reflection to be able to build on all JDKs >= 1.1:
try {
Class c = Class.forName ("com.sun.tools.javac.Main");
... | public boolean execute() throws BuildException {
attributes.log("Using modern compiler", Project.MSG_VERBOSE);
Commandline cmd = setupModernJavacCommand();
// Use reflection to be able to build on all JDKs >= 1.1:
try {
Class c = Class.forName ("com.sun.tools.javac.Main"... |
protected Commandline createCommand(File listFile)
{
Commandline command = new Commandline();
command.setExecutable("cabarc");
command.createArgument().setValue("-r");
command.createArgument().setValue("-p");
if (!doCompress)
{
command.createArgument(... | protected Commandline createCommand(File listFile)
{
Commandline command = new Commandline();
command.setExecutable("cabarc");
command.createArgument().setValue("-r");
command.createArgument().setValue("-p");
if (!doCompress)
{
command.createArgument(... |
private void determineDependencies() throws IOException {
affectedClassMap = new Hashtable();
classFileInfoMap = new Hashtable();
boolean cacheDirty = false;
Hashtable dependencyMap = null;
File depCacheFile = null;
| private void determineDependencies() throws IOException {
affectedClassMap = new Hashtable();
classFileInfoMap = new Hashtable();
boolean cacheDirty = false;
Hashtable dependencyMap = new Hashtable();
File depCacheFile = null;
|
public void testNullContextLocator()
{
try
{
AnnotProxyFieldValueFactory factory = new AnnotProxyFieldValueFactory(null);
fail();
}
| public void testNullContextLocator()
{
try
{
new AnnotProxyFieldValueFactory(null);
fail();
}
|
public void execute() throws BuildException {
if (property == null) {
throw new BuildException("property attribute is required", location);
}
if (classname == null && file == null && resource == null) {
throw new BuildException("At least one of (classname|fil... | public void execute() throws BuildException {
if (property == null) {
throw new BuildException("property attribute is required", location);
}
if (classname == null && file == null && resource == null) {
throw new BuildException("At least one of (classname|fil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.