buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
PointcutExpression getPointcutExpression();
/* *******************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies ... | PointcutExpression getPointcutExpression();
/* *******************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies ... |
PointcutExpression getPointcutExpression();
/* *******************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies ... | PointcutExpression getPointcutExpression();
/* *******************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies ... |
public static int calculateStatus(Status stat) {
if (stat != null && stat.getConnector().size() > 0) {
Connector cntr = fetchConnector(stat);
int max = cntr.getThreadInfo().getMaxThreads();
int current = cntr.getThreadInfo().getCurrentThreadsBusy();
// int spa... | public static int calculateStatus(Status stat) {
if (stat != null && stat.getConnector().size() > 0) {
Connector cntr = fetchConnector(stat);
int max = cntr.getThreadInfo().getMaxThreads();
int current = cntr.getThreadInfo().getCurrentThreadsBusy();
// int spa... |
public JLabeledTextArea(String pLabel, Document docModel) {
super();
mLabel = new JLabel(pLabel);
if (docModel != null) {
setDocumentModel(docModel);
}
init();
}
| public JLabeledTextArea(String pLabel, Document docModel) {
super();
mLabel = new JLabel(pLabel);
if (docModel != null) {
mTextArea.setDocument(docModel);
}
init();
}
|
protected int transferFiles(FTPClient ftp, FileSet fs)
throws IOException, BuildException {
FileScanner ds;
if (action == SEND_FILES) {
ds = fs.getDirectoryScanner(getProject());
} else {
ds = new FTPDirectoryScanner(ftp);
fs.setupDirectoryScanne... | protected int transferFiles(FTPClient ftp, FileSet fs)
throws IOException, BuildException {
FileScanner ds;
if (action == SEND_FILES) {
ds = fs.getDirectoryScanner(getProject());
} else {
ds = new FTPDirectoryScanner(ftp);
fs.setupDirectoryScanne... |
public void setUp() throws Exception {
super.setUp(CLEAR_TABLES, Dependent1.class, Employee1.class,
DependentId1.class);
}
| public void setUp() throws Exception {
super.setUp(DROP_TABLES, Dependent1.class, Employee1.class,
DependentId1.class);
}
|
private SerializedPageWithSession(String sessionId, Page page,
List /* <SerializablePage> */pages)
{
this.sessionId = sessionId;
pageId = page.getNumericId();
pageMapName = page.getPageMapName();
versionNumber = page.getCurrentVersionNumber();
ajaxVersionNumber = page.getAjaxVersionNumber();
t... | private SerializedPageWithSession(String sessionId, Page page,
List /* <SerializablePage> */pages)
{
this.sessionId = sessionId;
pageId = page.getNumericId();
pageMapName = page.getPageMapName();
versionNumber = page.getCurrentVersionNumber();
ajaxVersionNumber = page.getAjaxVersionNumber();
t... |
public RedirectPage(final String url, final int waitBeforeRedirectInSeconds)
{
final WebMarkupContainer redirect = new WebMarkupContainer("redirect");
final String content = waitBeforeRedirectInSeconds + "; " + url;
redirect.add(new AttributeModifier("content", new Model(content)));
add(redirect);
}
| public RedirectPage(final String url, final int waitBeforeRedirectInSeconds)
{
final WebMarkupContainer redirect = new WebMarkupContainer("redirect");
final String content = waitBeforeRedirectInSeconds + ";URL=" + url;
redirect.add(new AttributeModifier("content", new Model(content)));
add(redirect);
}
|
public synchronized Object connect(ID remote, Object data, int timeout) throws ECFException {
debug("connect(" + remote + "," + data + "," + timeout + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
if (socket != null)
throw new ECFException(Messages.Client_Already_Connected);
// parse URI
URI... | public synchronized Object connect(ID remote, Object data, int timeout) throws ECFException {
debug("connect(" + remote + "," + data + "," + timeout + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
if (socket != null)
throw new ECFException(Messages.Client_Already_Connected);
// parse URI
URI... |
protected void setUp() throws Exception
{
super.setUp();
application = new MockWebApplication(null);
application.getResourceSettings().addStringResourceLoader(
new BundleStringResourceLoader("wicket.model.StringResourceModelTest"));
page = new MockPage(null);
ws = new WeatherStation();
wsModel = new M... | protected void setUp() throws Exception
{
super.setUp();
application = new MockWebApplication(null);
application.getResourceSettings().addStringResourceLoader(
new BundleStringResourceLoader("wicket.model.StringResourceModelTest"));
page = new MockPage();
ws = new WeatherStation();
wsModel = new Model... |
public boolean internal_accessibilityPerformAction(NSString action, int childID) {
String actionName = action.getString();
if (accessibleActionListeners.size() > 0) {
AccessibleActionEvent event = new AccessibleActionEvent(this);
for (int i = 0; i < accessibleActionListeners.size(); i++) {
AccessibleActi... | public boolean internal_accessibilityPerformAction(NSString action, int childID) {
String actionName = action.getString();
if (accessibleActionListeners.size() > 0) {
AccessibleActionEvent event = new AccessibleActionEvent(this);
for (int i = 0; i < accessibleActionListeners.size(); i++) {
AccessibleActi... |
public static final String TAG_PATH_SEPARATOR = ":";
/**
* Find the markup element index of the component with 'path'
*
* @param path
* The component path expression
* @return -1, if not found
*/
int findComponentIndex(final String path);
| public static final String TAG_PATH_SEPARATOR = ":";
/**
* Find the markup element index of the component with 'path'
*
* @param path
* The component path expression
* @return -1, if not found
*/
int findTag(final String path);
|
public HeaderManager getHeaderManager()
{
HeaderManager manager = new HeaderManager();
Iterator keys = headers.keySet().iterator();
while (keys.hasNext())
{
String key = (String) keys.next();
if (!key.equals("proxy-connection") && !key.equals("content-length"))
{
manager.add((Header) headers.get(... | public HeaderManager getHeaderManager()
{
HeaderManager manager = new HeaderManager();
Iterator keys = headers.keySet().iterator();
while (keys.hasNext())
{
String key = (String) keys.next();
if (!key.equals("proxy-connection") && !key.equals("content-length") && !key.equals("accept-encoding"))
{
... |
public void init(IEditorSite site, IEditorInput editorInput)
throws PartInitException {
if (editorInput instanceof IFileEditorInput)
try {
EditorPlugin.getDefault()
.checkConnected(
((IFileEditorInput) editorInpu... | public void init(IEditorSite site, IEditorInput editorInput)
throws PartInitException {
if (editorInput instanceof IFileEditorInput)
try {
EditorPlugin.getDefault()
.checkConnected(
((IFileEditorInput) editorInpu... |
private String getKey(String key) {
return key; // XXX what is this for?
}
| private String getKey(String key) {
return key; // TODO what is this for?
}
|
public void process(){
StringBuffer sb = new StringBuffer(100);
JMeterContext threadContext = getThreadContext();
PropertyIterator i = threadContext.getCurrentSampler().propertyIterator();
while(i.hasNext())
{
JMeterProperty prop = i.next();
sb.append(... | public void process(){
StringBuilder sb = new StringBuilder(100);
JMeterContext threadContext = getThreadContext();
PropertyIterator i = threadContext.getCurrentSampler().propertyIterator();
while(i.hasNext())
{
JMeterProperty prop = i.next();
sb.appen... |
public String toString() {
StringBuffer str = new StringBuffer();
PropertyIterator iter = getArguments().iterator();
while (iter.hasNext()) {
Argument arg = (Argument) iter.next().getObjectValue();
final String metaData = arg.getMetaData();
str.append(arg.... | public String toString() {
StringBuilder str = new StringBuilder();
PropertyIterator iter = getArguments().iterator();
while (iter.hasNext()) {
Argument arg = (Argument) iter.next().getObjectValue();
final String metaData = arg.getMetaData();
str.append(ar... |
public String execute(SampleResult previousResult, Sampler currentSampler) {
if (compiledComponents == null || compiledComponents.size() == 0) {
return ""; // $NON-NLS-1$
}
boolean testDynamic = false;
StringBuffer results = new StringBuffer();
Iterator<Object> it... | public String execute(SampleResult previousResult, Sampler currentSampler) {
if (compiledComponents == null || compiledComponents.size() == 0) {
return ""; // $NON-NLS-1$
}
boolean testDynamic = false;
StringBuilder results = new StringBuilder();
Iterator<Object> ... |
public void actionPerformed(ActionEvent e) {
StringBuffer functionCall = new StringBuffer("${");
functionCall.append(functionList.getText());
Arguments args = (Arguments) parameterPanel.createTestElement();
if (args.getArguments().size() > 0) {
functionCall.append("(");
... | public void actionPerformed(ActionEvent e) {
StringBuilder functionCall = new StringBuilder("${");
functionCall.append(functionList.getText());
Arguments args = (Arguments) parameterPanel.createTestElement();
if (args.getArguments().size() > 0) {
functionCall.append("(");... |
private static void updateMenuItems(List<JComponent> menuItems) {
// Assume no recent files
boolean someRecentFiles = false;
// Update the menu items
for(int i = 0; i < NUMBER_OF_MENU_ITEMS; i++) {
// Get the menu item
JMenuItem recentFile = (JMenuItem)menuIte... | private static void updateMenuItems(List<JComponent> menuItems) {
// Assume no recent files
boolean someRecentFiles = false;
// Update the menu items
for(int i = 0; i < NUMBER_OF_MENU_ITEMS; i++) {
// Get the menu item
JMenuItem recentFile = (JMenuItem)menuIte... |
public String getSampleLabel(boolean includeGroup) {
if (includeGroup) {
StringBuffer sb = new StringBuffer(threadName.substring(0,threadName.lastIndexOf(" "))); //$NON-NLS-1$
return sb.append(":").append(label).toString(); //$NON-NLS-1$
}
return label;
}
| public String getSampleLabel(boolean includeGroup) {
if (includeGroup) {
StringBuilder sb = new StringBuilder(threadName.substring(0,threadName.lastIndexOf(" "))); //$NON-NLS-1$
return sb.append(":").append(label).toString(); //$NON-NLS-1$
}
return label;
}
|
public static String getKey(SampleEvent event) {
StringBuffer sb = new StringBuffer(80);
sb.append(event.getResult().getSampleLabel()).append("-").append(event.getThreadGroup());
return sb.toString();
}
| public static String getKey(SampleEvent event) {
StringBuilder sb = new StringBuilder(80);
sb.append(event.getResult().getSampleLabel()).append("-").append(event.getThreadGroup());
return sb.toString();
}
|
public static String cdata(byte[] chars, String encoding) throws UnsupportedEncodingException {
StringBuffer buf = new StringBuffer("<![CDATA[");
buf.append(new String(chars, encoding));
buf.append("]]>");
return buf.toString();
}
| public static String cdata(byte[] chars, String encoding) throws UnsupportedEncodingException {
StringBuilder buf = new StringBuilder("<![CDATA[");
buf.append(new String(chars, encoding));
buf.append("]]>");
return buf.toString();
}
|
public void setTestPlanClasspathArray(String[] text) {
StringBuffer cat = new StringBuffer();
for (int idx=0; idx < text.length; idx++) {
if (idx > 0) {
cat.append(CLASSPATH_SEPARATOR);
}
cat.append(text[idx]);
}
this.setTestPlanCla... | public void setTestPlanClasspathArray(String[] text) {
StringBuilder cat = new StringBuilder();
for (int idx=0; idx < text.length; idx++) {
if (idx > 0) {
cat.append(CLASSPATH_SEPARATOR);
}
cat.append(text[idx]);
}
this.setTestPlanC... |
private String join(String[] strings) {
StringBuffer sb = new StringBuffer();
for (int i=0;i<strings.length;i++){
if (i>0) {
sb.append(" ");
}
sb.append(strings[i]);
}
return sb.toString();
}
| private String join(String[] strings) {
StringBuilder sb = new StringBuilder();
for (int i=0;i<strings.length;i++){
if (i>0) {
sb.append(" ");
}
sb.append(strings[i]);
}
return sb.toString();
}
|
public static String substitute(final String input, final String pattern, final String sub) {
StringBuffer ret = new StringBuffer(input.length());
int start = 0;
int index = -1;
final int length = pattern.length();
while ((index = input.indexOf(pattern, start)) >= start) {
... | public static String substitute(final String input, final String pattern, final String sub) {
StringBuilder ret = new StringBuilder(input.length());
int start = 0;
int index = -1;
final int length = pattern.length();
while ((index = input.indexOf(pattern, start)) >= start) {
... |
public String toString() {
StringBuffer mySB = new StringBuffer();
mySB.append("Samples: " + this.getNumSamples() + " ");
mySB.append("Avg: " + this.getAverage() + " ");
mySB.append("Min: " + this.getMin() + " ");
mySB.append("Max: " + this.getMax() + " ");
mySB.... | public String toString() {
StringBuilder mySB = new StringBuilder();
mySB.append("Samples: " + this.getNumSamples() + " ");
mySB.append("Avg: " + this.getAverage() + " ");
mySB.append("Min: " + this.getMin() + " ");
mySB.append("Max: " + this.getMax() + " ");
myS... |
public synchronized void setParameters(Collection<CompoundVariable> parameters) throws InvalidVariableException {
log.debug(this + "::StringFromFile.setParameters()");//$NON-NLS-1$
checkParameterCount(parameters, MIN_PARAM_COUNT, MAX_PARAM_COUNT);
values = parameters.toArray();
Str... | public synchronized void setParameters(Collection<CompoundVariable> parameters) throws InvalidVariableException {
log.debug(this + "::StringFromFile.setParameters()");//$NON-NLS-1$
checkParameterCount(parameters, MIN_PARAM_COUNT, MAX_PARAM_COUNT);
values = parameters.toArray();
Str... |
public int nextRow() {
int row = nextRow;
nextRow++;
if (nextRow >= size())// 0-based
{
nextRow = 0;
}
log.debug(new StringBuffer("Row: ").append(row).toString());
return row;
}
| public int nextRow() {
int row = nextRow;
nextRow++;
if (nextRow >= size())// 0-based
{
nextRow = 0;
}
log.debug(new StringBuilder("Row: ").append(row).toString());
return row;
}
|
public final String toString() {
final StringBuffer sb = new StringBuffer();
sb.append("[OptionDescriptor ");
sb.append(m_name);
sb.append(", ");
sb.append(m_id);
sb.append(", ");
sb.append(m_flags);
sb.append(", ");
sb.append(m_description);
... | public final String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("[OptionDescriptor ");
sb.append(m_name);
sb.append(", ");
sb.append(m_id);
sb.append(", ");
sb.append(m_flags);
sb.append(", ");
sb.append(m_description);... |
public final String toString() {
final StringBuffer sb = new StringBuffer();
sb.append(m_type);
sb.append(":");
sb.append(m_value);
return sb.toString();
}
| public final String toString() {
final StringBuilder sb = new StringBuilder();
sb.append(m_type);
sb.append(":");
sb.append(m_value);
return sb.toString();
}
|
public String getText() {
String lineEnd = System.getProperty("line.separator"); //$NON-NLS-1$
StringBuffer sb = new StringBuffer();
Reader reader = null;
BufferedReader br = null;
try {
if (encoding == null) {
reader = new FileReader(this);
... | public String getText() {
String lineEnd = System.getProperty("line.separator"); //$NON-NLS-1$
StringBuilder sb = new StringBuilder();
Reader reader = null;
BufferedReader br = null;
try {
if (encoding == null) {
reader = new FileReader(this);
... |
public static String insertLineBreaks(String v, String insertion) {
if (v == null) {
return "";
}
StringBuffer replacement = new StringBuffer();
StringTokenizer tokens = new StringTokenizer(v, "\n", true);
while (tokens.hasMoreTokens()) {
String token ... | public static String insertLineBreaks(String v, String insertion) {
if (v == null) {
return "";
}
StringBuilder replacement = new StringBuilder();
StringTokenizer tokens = new StringTokenizer(v, "\n", true);
while (tokens.hasMoreTokens()) {
String toke... |
public String toString() {
StringBuffer sb=new StringBuffer(80);
sb.append(getDomain());
// flag - if all machines within a given domain can access the variable.
//(from http://www.cookiecentral.com/faq/ 3.5)
sb.append(TAB).append("TRUE");
sb.append(TAB).append(getPat... | public String toString() {
StringBuilder sb=new StringBuilder(80);
sb.append(getDomain());
// flag - if all machines within a given domain can access the variable.
//(from http://www.cookiecentral.com/faq/ 3.5)
sb.append(TAB).append("TRUE");
sb.append(TAB).append(getP... |
private String cookieToString(Cookie c){
StringBuffer sb=new StringBuffer(80);
sb.append(c.getDomain());
//flag - if all machines within a given domain can access the variable.
//(from http://www.cookiecentral.com/faq/ 3.5)
sb.append(TAB).append("TRUE");
sb.append(TAB... | private String cookieToString(Cookie c){
StringBuilder sb=new StringBuilder(80);
sb.append(c.getDomain());
//flag - if all machines within a given domain can access the variable.
//(from http://www.cookiecentral.com/faq/ 3.5)
sb.append(TAB).append("TRUE");
sb.append(T... |
public void run() {
log.info("Starting thread");
BufferedInputStream in = null;
BufferedOutputStream out = null;
try {
in = new BufferedInputStream(clientSocket.getInputStream());
out = new BufferedOutputStream(clientSocket.getOutputStream());
// ... | public void run() {
log.info("Starting thread");
BufferedInputStream in = null;
BufferedOutputStream out = null;
try {
in = new BufferedInputStream(clientSocket.getInputStream());
out = new BufferedOutputStream(clientSocket.getOutputStream());
// ... |
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("-------------------------------\n");
sb.append("Dumping ParamMask Object\n");
sb.append("-------------------------------\n");
sb.append("Name = " + getFieldName() + "\n");
sb.append("... | public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("-------------------------------\n");
sb.append("Dumping ParamMask Object\n");
sb.append("-------------------------------\n");
sb.append("Name = " + getFieldName() + "\n");
sb.append... |
private static String printNode(Node node) {
StringBuffer buf = new StringBuffer();
buf.append("<"); // $NON-NLS-1$
buf.append(node.getNodeName());
NamedNodeMap atts = node.getAttributes();
for (int x = 0; x < atts.getLength(); x++) {
buf.append(" "); // $NON-NLS-... | private static String printNode(Node node) {
StringBuilder buf = new StringBuilder();
buf.append("<"); // $NON-NLS-1$
buf.append(node.getNodeName());
NamedNodeMap atts = node.getAttributes();
for (int x = 0; x < atts.getLength(); x++) {
buf.append(" "); // $NON-NL... |
private String massageResponseHeaders(SampleResult res, boolean forcedHTTPS) {
String headers = res.getResponseHeaders();
String [] headerLines=headers.split(NEW_LINE, 0); // drop empty trailing content
int contentLengthIndex=-1;
boolean fixContentLength = forcedHTTPS;
for (i... | private String massageResponseHeaders(SampleResult res, boolean forcedHTTPS) {
String headers = res.getResponseHeaders();
String [] headerLines=headers.split(NEW_LINE, 0); // drop empty trailing content
int contentLengthIndex=-1;
boolean fixContentLength = forcedHTTPS;
for (i... |
private String generateMatchUrl(HTTPSamplerBase sampler) {
StringBuffer buf = new StringBuffer(sampler.getDomain());
buf.append(':'); // $NON-NLS-1$
buf.append(sampler.getPort());
buf.append(sampler.getPath());
if (sampler.getQueryString().length() > 0) {
buf.appe... | private String generateMatchUrl(HTTPSamplerBase sampler) {
StringBuilder buf = new StringBuilder(sampler.getDomain());
buf.append(':'); // $NON-NLS-1$
buf.append(sampler.getPort());
buf.append(sampler.getPath());
if (sampler.getQueryString().length() > 0) {
buf.ap... |
public String getSamplerData() {
StringBuffer sb = new StringBuffer();
sb.append(method);
URL u = super.getURL();
if (u != null) {
sb.append(' ');
sb.append(u.toString());
sb.append("\n");
// Include request body if it is a post or put
... | public String getSamplerData() {
StringBuilder sb = new StringBuilder();
sb.append(method);
URL u = super.getURL();
if (u != null) {
sb.append(' ');
sb.append(u.toString());
sb.append("\n");
// Include request body if it is a post or pu... |
public void setHeaders(URLConnection connection, HTTPSampler sampler) throws IOException {
// Get the encoding to use for the request
String contentEncoding = sampler.getContentEncoding();
if(contentEncoding == null || contentEncoding.length() == 0) {
contentEncoding = ENCODING;
... | public void setHeaders(URLConnection connection, HTTPSampler sampler) throws IOException {
// Get the encoding to use for the request
String contentEncoding = sampler.getContentEncoding();
if(contentEncoding == null || contentEncoding.length() == 0) {
contentEncoding = ENCODING;
... |
public String toString() {
StringBuffer str = new StringBuffer();
PropertyIterator iter = getHTTPFileArgsCollection().iterator();
while (iter.hasNext()) {
HTTPFileArg file = (HTTPFileArg) iter.next().getObjectValue();
str.append(file.getPath());
if (iter.h... | public String toString() {
StringBuilder str = new StringBuilder();
PropertyIterator iter = getHTTPFileArgsCollection().iterator();
while (iter.hasNext()) {
HTTPFileArg file = (HTTPFileArg) iter.next().getObjectValue();
str.append(file.getPath());
if (iter... |
private String whoAmI() {
StringBuffer sb = new StringBuffer();
sb.append(Thread.currentThread().getName());
sb.append("@");
sb.append(Integer.toHexString(hashCode()));
sb.append("-");
sb.append(getName());
return sb.toString();
}
| private String whoAmI() {
StringBuilder sb = new StringBuilder();
sb.append(Thread.currentThread().getName());
sb.append("@");
sb.append(Integer.toHexString(hashCode()));
sb.append("-");
sb.append(getName());
return sb.toString();
}
|
private String whoAmI() {
StringBuffer sb = new StringBuffer();
sb.append(Thread.currentThread().toString());
sb.append("@");
sb.append(Integer.toHexString(hashCode()));
return sb.toString();
}
| private String whoAmI() {
StringBuilder sb = new StringBuilder();
sb.append(Thread.currentThread().toString());
sb.append("@");
sb.append(Integer.toHexString(hashCode()));
return sb.toString();
}
|
public String toString() {
StringBuffer str = new StringBuffer();
PropertyIterator iter = getArguments().iterator();
while (iter.hasNext()) {
LDAPArgument arg = (LDAPArgument) iter.next().getObjectValue();
final String metaData = arg.getMetaData();
str.app... | public String toString() {
StringBuilder str = new StringBuilder();
PropertyIterator iter = getArguments().iterator();
while (iter.hasNext()) {
LDAPArgument arg = (LDAPArgument) iter.next().getObjectValue();
final String metaData = arg.getMetaData();
str.a... |
private void writeSearchResult(final SearchResult sr, final XMLBuffer xmlb)
throws NamingException
{
final Attributes attrs = sr.getAttributes();
final int size = attrs.size();
final ArrayList<Attribute> sortedAttrs = new ArrayList<Attribute>(size);
... | private void writeSearchResult(final SearchResult sr, final XMLBuffer xmlb)
throws NamingException
{
final Attributes attrs = sr.getAttributes();
final int size = attrs.size();
final ArrayList<Attribute> sortedAttrs = new ArrayList<Attribute>(size);
... |
public DirContext connect(String host, String port, String rootdn, String username, String password, String connTimeOut, boolean secure)
throws NamingException {
DirContext dirContext;
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.INITIAL_CONTEX... | public DirContext connect(String host, String port, String rootdn, String username, String password, String connTimeOut, boolean secure)
throws NamingException {
DirContext dirContext;
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.INITIAL_CONTEX... |
public static void main(String[] args) {
if (args != null && args.length == 2) {
String file = null;
// int count = 1;
if (args[0] != null) {
file = args[0];
}
if (args[1] != null) {
// count = Integer.parseInt(args[... | public static void main(String[] args) {
if (args != null && args.length == 2) {
String file = null;
// int count = 1;
if (args[0] != null) {
file = args[0];
}
if (args[1] != null) {
// count = Integer.parseInt(args[... |
public static void main(String[] args) {
if (args.length == 3) {
int parser = 0;
String file = null;
int loops = 1000;
if (args[0] != null) {
if (!args[0].equals("jaxb")) {
parser = 1;
}
}
... | public static void main(String[] args) {
if (args.length == 3) {
int parser = 0;
String file = null;
int loops = 1000;
if (args[0] != null) {
if (!args[0].equals("jaxb")) {
parser = 1;
}
}
... |
public static void main(String[] args) {
if (args.length < 1) {
System.out.println("You must specify a comma-delimited list of paths to search " + "for unit tests");
System.exit(1);
}
String home=new File(System.getProperty("user.dir")).getParent();
System.out... | public static void main(String[] args) {
if (args.length < 1) {
System.out.println("You must specify a comma-delimited list of paths to search " + "for unit tests");
System.exit(1);
}
String home=new File(System.getProperty("user.dir")).getParent();
System.out... |
protected void addVendorFiles(Hashtable ejbFiles, String baseName) {
String ddPrefix = (usingBaseJarName() ? "" : baseName + getConfig().baseNameTerminator);
File jbossDD = new File(getConfig().descriptorDir, ddPrefix + JBOSS_DD);
if (jbossDD.exists()) {
ejbFiles.put(META_DIR + ... | protected void addVendorFiles(Hashtable ejbFiles, String baseName, String descriptorFileName) {
String ddPrefix = (usingBaseJarName() ? "" : baseName + getConfig().baseNameTerminator);
File jbossDD = new File(getConfig().descriptorDir, ddPrefix + JBOSS_DD);
if (jbossDD.exists()) {
... |
protected void showTextResponse(String response) {
results.setContentType("text/plain"); // $NON-NLS-1$
results.setText(response == null ? "" : response); // $NON-NLS-1$
results.setCaretPosition(0);
resultsScrollPane.setViewportView(results);
textButton.setEnabled(true);
htmlButton.setEnabled(true);
xml... | protected void showTextResponse(String response) {
results.setContentType("text/plain"); // $NON-NLS-1$
results.setText(response == null ? "" : response); // $NON-NLS-1$
results.setCaretPosition(0);
resultsScrollPane.setViewportView(results);
textButton.setEnabled(true);
htmlButton.setEnabled(true);
xml... |
private <T extends Page> void executeCombinedTest(final Class<T> pageClass,
final String filename) throws Exception
{
// Default Config: parent first header render strategy
log.error("=== PARENT first header render strategy ===");
WicketTester tester = new WicketTester();
tester.startPage(pageClass);
test... | private <T extends Page> void executeCombinedTest(final Class<T> pageClass,
final String filename) throws Exception
{
// Default Config: parent first header render strategy
log.error("=== PARENT first header render strategy ===");
WicketTester tester = new WicketTester();
tester.startPage(pageClass);
test... |
public String getParamString(boolean typesOnly) {
if (params == null || params.length == 0)
return wildParams ? "(*)" : "";
final StringBuffer buff = new StringBuffer("(");
for (int i = 0; i < params.length; i++) {
final DeclaredParameter p = params[i];
buff.append(p.getType().getValue());
if (!types... | public String getParamString(boolean typesOnly) {
if (params == null || params.length == 0)
return wildParams ? "(*)" : "";
final StringBuilder buff = new StringBuilder("(");
for (int i = 0; i < params.length; i++) {
final DeclaredParameter p = params[i];
buff.append(p.getType().getValue());
if (!typ... |
public List<String> getImportedExtensionsAsList() {
final List<String> result = new ArrayList<String>();
for (ImportDeclaration ext : extensions) {
result.add(ext.getImportString().getValue());
}
return result;
}
| public List<String> getImportedExtensionsAsList() {
final List<String> result = new ArrayList<String>(extensions.length);
for (ImportDeclaration ext : extensions) {
result.add(ext.getImportString().getValue());
}
return result;
}
|
protected void runExec(Execute exe) throws BuildException {
try {
Vector fileNames = new Vector();
Vector baseDirs = new Vector();
for (int i=0; i<filesets.size(); i++) {
FileSet fs = (FileSet) filesets.elementAt(i);
File base = fs.getDir(... | protected void runExec(Execute exe) throws BuildException {
try {
Vector fileNames = new Vector();
Vector baseDirs = new Vector();
for (int i=0; i<filesets.size(); i++) {
FileSet fs = (FileSet) filesets.elementAt(i);
File base = fs.getDir(... |
public String getContentType()
{
return null;
}
| public String getContentType()
{
return WebApplication.get().getServletContext().getMimeType(url);
}
|
public AssertionResult getResult(SampleResult response) {
AssertionResult result = new AssertionResult(getName());
final BeanShellInterpreter bshInterpreter = getBeanShellInterpreter();
if (bshInterpreter == null) {
result.setFailure(true);
result.setError(true);
... | public AssertionResult getResult(SampleResult response) {
AssertionResult result = new AssertionResult(getName());
final BeanShellInterpreter bshInterpreter = getBeanShellInterpreter();
if (bshInterpreter == null) {
result.setFailure(true);
result.setError(true);
... |
public SampleResult sample(Entry e)// Entry tends to be ignored ...
{
// log.info(getLabel()+" "+getFilename());
SampleResult res = new SampleResult();
boolean isSuccessful = false;
res.setSampleLabel(getLabel());
res.sampleStart();
final BeanShellInterpreter bshI... | public SampleResult sample(Entry e)// Entry tends to be ignored ...
{
// log.info(getLabel()+" "+getFilename());
SampleResult res = new SampleResult();
boolean isSuccessful = false;
res.setSampleLabel(getLabel());
res.sampleStart();
final BeanShellInterpreter bshI... |
protected void zipFile(File file, ZipOutputStream zOut, String vPath,
int mode)
throws IOException {
// If the file being added is META-INF/application.xml, we
// warn if it's not the one specified in the "appxml"
// attribute - or if it's being added twice... | protected void zipFile(File file, ZipOutputStream zOut, String vPath,
int mode)
throws IOException {
// If the file being added is META-INF/application.xml, we
// warn if it's not the one specified in the "appxml"
// attribute - or if it's being added twice... |
protected void zipFile(File file, ZipOutputStream zOut, String vPath,
int mode)
throws IOException {
// If the file being added is WEB-INF/web.xml, we warn if it's
// not the one specified in the "webxml" attribute - or if
// it's being added twice, meaning... | protected void zipFile(File file, ZipOutputStream zOut, String vPath,
int mode)
throws IOException {
// If the file being added is WEB-INF/web.xml, we warn if it's
// not the one specified in the "webxml" attribute - or if
// it's being added twice, meaning... |
protected PageableListViewNavigation newNavigation(final PageableListView table)
{
PageableListViewNavigationWithMargin nav = new PageableListViewNavigationWithMargin("navigation", table);
nav.setMargin(2);
if (nav.getViewSize() > 5)
... | protected PageableListViewNavigation newNavigation(final PageableListView table)
{
PageableListViewNavigation nav = new PageableListViewNavigation("navigation", table);
nav.setMargin(2);
if (nav.getViewSize() > 5)
{
... |
public boolean isNotNull() {
return _notNull == Boolean.TRUE;
}
| public boolean isNotNull() {
return Boolean.TRUE.equals(_notNull);
}
|
public boolean execute() throws BuildException {
attributes.log("Using classic compiler", Project.MSG_VERBOSE);
Commandline cmd = setupJavacCommand();
OutputStream logstr = new LogOutputStream(attributes, Project.MSG_WARN);
try {
// Create an instance of the compiler, re... | public boolean execute() throws BuildException {
attributes.log("Using classic compiler", Project.MSG_VERBOSE);
Commandline cmd = setupJavacCommand(true);
OutputStream logstr = new LogOutputStream(attributes, Project.MSG_WARN);
try {
// Create an instance of the compiler... |
public SampleResult runTest(JavaSamplerContext context)
{
log.debug(whoAmI() + "\trunTest");
Thread.yield();
SampleResult results = new SampleResult();
results.setSuccessful(false);
results.setResponseData(
("Class not found: " ... | public SampleResult runTest(JavaSamplerContext p_context)
{
log.debug(whoAmI() + "\trunTest");
Thread.yield();
SampleResult results = new SampleResult();
results.setSuccessful(false);
results.setResponseData(
("Class not found: ... |
private static boolean recurseForm(Node tempNode, LinkedList urlConfigs, HTTPSampler context,
String selectName, boolean inForm)
{
NamedNodeMap nodeAtts = tempNode.getAttributes();
String tag = tempNode.getNodeName();
try
{
if(inForm)
{
HTTPSampler url = (HTTPSampler)urlConfigs.getLast();
if(... | private static boolean recurseForm(Node tempNode, LinkedList urlConfigs, HTTPSampler context,
String selectName, boolean inForm)
{
NamedNodeMap nodeAtts = tempNode.getAttributes();
String tag = tempNode.getNodeName();
try
{
if(inForm)
{
HTTPSampler url = (HTTPSampler)urlConfigs.getLast();
if(... |
public void focusGained(FocusEvent e) {
}
});
durationPanel.add(new JLabel("Duration"));
durationPanel.add(durationField);
add(durationPanel);
}
| public void focusGained(FocusEvent e) {
}
});
durationPanel.add(new JLabel(durationLabel));
durationPanel.add(durationField);
add(durationPanel);
}
|
private final void respond(final IResourceStream resourceStream, final Response response)
{
try
{
final OutputStream out = response.getOutputStream();
try
{
Streams.copy(resourceStream.getInputStream(), out);
}
finally
{
resourceStream.close();
out.flush();
}
}
catch (Exceptio... | private final void respond(final IResourceStream resourceStream, final Response response)
{
try
{
final OutputStream out = response.getOutputStream();
try
{
Streams.copy(resourceStream.getInputStream(), out);
}
finally
{
resourceStream.close();
out.flush();
}
}
catch (Exceptio... |
void scan() throws IllegalStateException;
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... | void scan() throws IllegalStateException;
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
public TableSample() {
this(0, 0, 0, "", "", 0, true, 0);
}
| public TableSample() {
this(0, 1, 0, "", "", 0, true, 0);
}
|
public FuzzyBoolean matches(ResolvedTypeX[] someArgs) {
// do some quick length tests first
int numArgsMatchedByEllipsis = (someArgs.length + ellipsisCount) - typePatterns.length;
if (numArgsMatchedByEllipsis < 0) return FuzzyBoolean.NO;
if ((numArgsMatchedByEllipsis > 0) && (ellipsisCount == 0)) {
return... | public FuzzyBoolean matches(ResolvedTypeX[] someArgs) {
// do some quick length tests first
int numArgsMatchedByEllipsis = (someArgs.length + ellipsisCount) - typePatterns.length;
if (numArgsMatchedByEllipsis < 0) return FuzzyBoolean.NO;
if ((numArgsMatchedByEllipsis > 0) && (ellipsisCount == 0)) {
return... |
protected FuzzyBoolean matchInternal(Shadow shadow) {
if (!couldMatch(shadow)) return FuzzyBoolean.NO;
ResolvedTypeX toMatchAgainst =
(isThis ? shadow.getThisType() : shadow.getTargetType() ).resolve(shadow.getIWorld());
annotationTypePattern.resolve(shadow.getIWorld());
if (annotationTypePa... | protected FuzzyBoolean matchInternal(Shadow shadow) {
if (!couldMatch(shadow)) return FuzzyBoolean.NO;
ResolvedTypeX toMatchAgainst =
(isThis ? shadow.getThisType() : shadow.getTargetType() ).resolve(shadow.getIWorld());
annotationTypePattern.resolve(shadow.getIWorld());
if (annotationTypePa... |
public String getPath() {
return getNodeId() + INode._URI_ + Geo.getHost()
+ INode._ZOODISCOVERYID_
+ Configurator.INSTANCE.getID().toString();
}
| public String getPath() {
return getNodeId() + INode._URI_ + Geo.getHost()
+ INode._ZOODISCOVERYID_
+ Configurator.INSTANCE.getID().getName();
}
|
public static boolean isOwnPublication(String childPath) {
Assert.isNotNull(childPath);
Assert.isTrue(childPath.length() > INode.ROOT.length());
String[] parts = childPath.split(INode._ZOODISCOVERYID_);
String id = parts[1];
return id.equals(Configurator.INSTANCE.getID().toString());
}
| public static boolean isOwnPublication(String childPath) {
Assert.isNotNull(childPath);
Assert.isTrue(childPath.length() > INode.ROOT.length());
String[] parts = childPath.split(INode._ZOODISCOVERYID_);
String id = parts[1];
return id.equals(Configurator.INSTANCE.getID().getName());
}
|
public static void processSamples(String filename, Visualizer visualizer,
ResultCollector resultCollector) throws IOException {
BufferedReader dataReader = null;
final boolean errorsOnly = resultCollector.isErrorLogging();
final boolean successOnly = resultCollector.isSuccessOnly... | public static void processSamples(String filename, Visualizer visualizer,
ResultCollector resultCollector) throws IOException {
BufferedReader dataReader = null;
final boolean errorsOnly = resultCollector.isErrorLogging();
final boolean successOnly = resultCollector.isSuccessOnly... |
private int number;
@Id
@Column(nullable = false)
@ManyToOne (cascade = CascadeType.ALL)
@JoinColumns({
@JoinColumn(name="BOOK_LIBRARY_LIBRARY_NAME", referencedColumnName="LIBRARY_LIBRARY_NAME"),
@JoinColumn(name="BOOK_BOOK_NAME", referencedColumnName="BOOK_NAME")
})
| private int number;
@Id
@Column(nullable = false)
@ManyToOne
@JoinColumns({
@JoinColumn(name="BOOK_LIBRARY_LIBRARY_NAME", referencedColumnName="LIBRARY_LIBRARY_NAME"),
@JoinColumn(name="BOOK_BOOK_NAME", referencedColumnName="BOOK_NAME")
})
|
private int staleRendering = 0;
/** temporary reference to the messages in case we are redirecting. */
FeedbackMessages messages;
static
{
// Allow calls through the IRedirectListener interface
RequestCycle.registerListenerInterface(IRedirectListener.class);
}
| private int staleRendering = 0;
/** temporary reference to the messages in case we are redirecting. */
FeedbackMessages messages;
static
{
// Allow calls through the IRedirectListener interface
RequestCycle.registerRequestListenerInterface(IRedirectListener.class);
}
|
private static final long serialVersionUID = 122777360064586107L;
static
{
// allow optional use of the IOnChangeListener interface
RequestCycle.registerListenerInterface(IOnChangeListener.class);
}
| private static final long serialVersionUID = 122777360064586107L;
static
{
// allow optional use of the IOnChangeListener interface
RequestCycle.registerRequestListenerInterface(IOnChangeListener.class);
}
|
private static final long serialVersionUID = 555385780092173403L;
static
{
RequestCycle.registerListenerInterface(IResourceListener.class);
}
| private static final long serialVersionUID = 555385780092173403L;
static
{
RequestCycle.registerRequestListenerInterface(IResourceListener.class);
}
|
public void test_Constructor() {
final int COUNT = 40000000;
PerformanceMeter meter = createMeter();
meter.start();
for (int i = 0; i < COUNT; i++) {
new DeviceData();
}
meter.stop();
disposeMeter(meter);
}
| public void test_Constructor() {
final int COUNT = 40000000;
PerformanceMeter meter = createMeter("DeviceData constr.");
meter.start();
for (int i = 0; i < COUNT; i++) {
new DeviceData();
}
meter.stop();
disposeMeter(meter);
}
|
public void test_ConstructorLorg_eclipse_swt_graphics_ImageLoaderLorg_eclipse_swt_graphics_ImageDataIZ() {
final int COUNT = 30000000;
ImageLoader loader = new ImageLoader();
PerformanceMeter meter = createMeter();
meter.start();
for (int i = 0; i < COUNT; i++) {
new ImageLoaderEvent(loader, null, 0, true);
... | public void test_ConstructorLorg_eclipse_swt_graphics_ImageLoaderLorg_eclipse_swt_graphics_ImageDataIZ() {
final int COUNT = 30000000;
ImageLoader loader = new ImageLoader();
PerformanceMeter meter = createMeter("ImageLoaderEvent constr.");
meter.start();
for (int i = 0; i < COUNT; i++) {
new ImageLoaderEven... |
public String endLine(int line) {
return addLineBreak ? HTML_BR_TAG : HTML_BR_TAG + NEW_LINE;
}
| public String endLine(int line) {
return addLineBreak ? HTML_BR_TAG + NEW_LINE : NEW_LINE;
}
|
protected void appendDateTime() {
String message = NLS.bind(Messages.MessageRenderer_DEFAULT_DATETIME_FORMAT, getCurrentDate(DEFAULT_TIME_FORMAT));
append(message, dateColor, null, SWT.NORMAL);
}
| protected void appendDateTime() {
String message = NLS.bind(Messages.MessageRenderer_DEFAULT_DATETIME_FORMAT, getCurrentDate(DEFAULT_TIME_FORMAT)) + " ";
append(message, dateColor, null, SWT.NORMAL);
}
|
public DeferredNode getNodeObject(int nodeIndex) {
// is there anything to do?
if (nodeIndex == -1) {
return null;
}
// get node type
int chunk = nodeIndex >> CHUNK_SHIFT;
int index = nodeIndex & CHUNK_MASK;
int type = clearChunkIndex(fNodeType, ... | public DeferredNode getNodeObject(int nodeIndex) {
// is there anything to do?
if (nodeIndex == -1) {
return null;
}
// get node type
int chunk = nodeIndex >> CHUNK_SHIFT;
int index = nodeIndex & CHUNK_MASK;
int type = clearChunkIndex(fNodeType, ... |
// will call persistFromComponentData(), which is private
this.form.formSubmitted(cycle);
// validate
Collection cookies = application.getServletResponse().getCookies();
Assert.assertEquals(2, cookies.size());
Iterator iter = cookies.iterator();
while (iter.hasNext())
... | // will call persistFromComponentData(), which is private
this.form.formSubmitted(cycle);
// validate
Collection cookies = application.getServletResponse().getCookies();
Assert.assertEquals(4, cookies.size());
Iterator iter = cookies.iterator();
while (iter.hasNext())
... |
public void execute() throws BuildException {
Union savedPath = path;
String savedPathSep = pathSep; // may be altered in validateSetup
String savedDirSep = dirSep; // may be altered in validateSetup
try {
// If we are a reference, create a Path from the reference
... | public void execute() throws BuildException {
Union savedPath = path;
String savedPathSep = pathSep; // may be altered in validateSetup
String savedDirSep = dirSep; // may be altered in validateSetup
try {
// If we are a reference, create a Path from the reference
... |
public String[] getClasses() {
ArrayList al = new ArrayList();
if (cls != null) {
StringTokenizer tok = new StringTokenizer(cls, ",", false);
while (tok.hasMoreTokens()) {
al.add(tok.nextToken().trim());
}
}
Enumeration e = classes... | public String[] getClasses() {
ArrayList al = new ArrayList();
if (cls != null) {
StringTokenizer tok = new StringTokenizer(cls, ",", false);
while (tok.hasMoreTokens()) {
al.add(tok.nextToken().trim());
}
}
Enumeration e = classes... |
public static Specification[] getSpecifications(final Manifest manifest)
throws ParseException {
if (null == manifest) {
return new Specification[ 0 ];
}
final ArrayList results = new ArrayList();
final Map entries = manifest.getEntries();
final Iterator... | public static Specification[] getSpecifications(final Manifest manifest)
throws ParseException {
if (null == manifest) {
return new Specification[ 0 ];
}
final ArrayList results = new ArrayList();
final Map entries = manifest.getEntries();
final Iterator... |
private void updateInMemory(Object ob, Object[] params) {
for (Iterator it = getUpdates().entrySet().iterator();
it.hasNext();) {
Map.Entry e = (Map.Entry) it.next();
FieldMetaData fmd = (FieldMetaData) e.getKey();
Object val;
Object value = e.get... | private void updateInMemory(Object ob, Object[] params) {
for (Iterator it = getUpdates().entrySet().iterator();
it.hasNext();) {
Map.Entry e = (Map.Entry) it.next();
FieldMetaData fmd = (FieldMetaData) e.getKey();
Object val;
Object value = e.get... |
public void onNewBrowserWindow()
{
// this is called when the browser did report history size of 0
ArrayListStack accessStack = getPageMap().getAccessStack();
if(accessStack.size() > 1)
{
Access access = (Access)accessStack.get(0);
// if the browser history == 0 then this page must be the first in the a... | public void onNewBrowserWindow()
{
// this is called when the browser did report history size of 0
ArrayListStack accessStack = getPageMap().getAccessStack();
if(accessStack.size() > 1)
{
Access access = (Access)accessStack.get(0);
// if the browser history == 0 then this page must be the first in the a... |
public AllTests() {
super();
/* The logical order to run the tests in is:
* - SWT, SWTError, SWTException
* - Display
* - graphics classes
* - items and Caret, etc
* - widgets
* - dialogs
* - layout
* - custom widgets
* - printing and program
* - events
* - drag & drop
* - accessibility
* - ... | public AllTests() {
super();
/* The logical order to run the tests in is:
* - SWT, SWTError, SWTException
* - Display
* - graphics classes
* - items and Caret, etc
* - widgets
* - dialogs
* - layout
* - custom widgets
* - printing and program
* - events
* - drag & drop
* - accessibility
* - ... |
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTest(Test_org_eclipse_swt_widgets_ExpandItem.suite());
suite.addTest(Test_org_eclipse_swt_widgets_MenuItem.suite());
suite.addTest(Test_org_eclipse_swt_widgets_ToolItem.suite());
//suite.addTest(Test_org_eclipse_swt_widgets_CoolItem.suite())... | public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTest(Test_org_eclipse_swt_widgets_ExpandItem.suite());
suite.addTest(Test_org_eclipse_swt_widgets_MenuItem.suite());
suite.addTest(Test_org_eclipse_swt_widgets_ToolItem.suite());
//suite.addTest(Test_org_eclipse_swt_widgets_CoolItem.suite())... |
public void testGetSimpleResource()
{
StringResourceModel model = new StringResourceModel("simple.text", page, null);
Assert.assertEquals("Text should be as expected", "Simple text", model.getString());
Assert.assertEquals("Text should be as expected", "Simple text", model.getObject());
Assert.assertEquals("T... | public void testGetSimpleResource()
{
StringResourceModel model = new StringResourceModel("simple.text", page, null);
Assert.assertEquals("Text should be as expected", "Simple text", model.getString());
Assert.assertEquals("Text should be as expected", "Simple text", model.getObject());
// Assert.assertEquals... |
protected final void invokeInterface(final Component component, final Method method,
final Page page)
{
if (page instanceof WebPage)
{
((WebPage)page).beforeCallComponent(component, method);
}
try
{
// Invoke the interface method on the component
method.invoke(component, new Object[] {});
}
... | protected final void invokeInterface(final Component component, final Method method,
final Page page)
{
if (page instanceof WebPage)
{
((WebPage)page).beforeCallComponent(component, method);
}
try
{
// Invoke the interface method on the component
method.invoke(component, new Object[] {});
}
... |
protected void synchronizeChildren() {
// attributes are now synced
syncChildren(false);
// create attributes node map
DeferredDocumentImpl ownerDocument =
(DeferredDocumentImpl)this.ownerDocument;
attributes = new NamedNodeMapImpl(ownerDocument, null);
... | protected void synchronizeChildren() {
// attributes are now synced
syncChildren(false);
// create attributes node map
DeferredDocumentImpl ownerDocument =
(DeferredDocumentImpl)this.ownerDocument;
attributes = new NamedNodeMapImpl(ownerDocument);
// De... |
public ElementDefinitionImpl(DocumentImpl ownerDocument, String name) {
super(ownerDocument);
this.name = name;
attributes = new NamedNodeMapImpl(ownerDocument, null);
}
| public ElementDefinitionImpl(DocumentImpl ownerDocument, String name) {
super(ownerDocument);
this.name = name;
attributes = new NamedNodeMapImpl(ownerDocument);
}
|
public void execute() throws BuildException {
if (descriptorDirectory == null ||
!descriptorDirectory.isDirectory()) {
throw new BuildException("descriptors directory " + descriptorDirectory.getPath() +
" is not valid");
}
if (gen... | public void execute() throws BuildException {
if (descriptorDirectory == null ||
!descriptorDirectory.isDirectory()) {
throw new BuildException("descriptors directory " + descriptorDirectory.getPath() +
" is not valid");
}
if (gen... |
public void buildWeblogicJar(File sourceJar, File destJar) {
org.apache.tools.ant.taskdefs.Java javaTask = null;
try {
// Unfortunately, because weblogic.ejbc calls system.exit(), we
// cannot do it 'in-process'. If they ever fix this, we should
// change... | public void buildWeblogicJar(File sourceJar, File destJar) {
org.apache.tools.ant.taskdefs.Java javaTask = null;
try {
// Unfortunately, because weblogic.ejbc calls system.exit(), we
// cannot do it 'in-process'. If they ever fix this, we should
// change... |
public void execute() throws BuildException {
if (descriptorDirectory == null ||
!descriptorDirectory.isDirectory()) {
throw new BuildException("descriptors directory " + descriptorDirectory.getPath() +
" is not valid");
}
if (gen... | public void execute() throws BuildException {
if (descriptorDirectory == null ||
!descriptorDirectory.isDirectory()) {
throw new BuildException("descriptors directory " + descriptorDirectory.getPath() +
" is not valid");
}
if (gen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.