buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
protected void notifyListener(IListener listener)
{
((IChangeListener)listener).changed();
}
| protected void notifyListener(IListener listener)
{
((IChangeListener)listener).onChange();
}
|
public void changed();
}
| public void onChange();
}
|
void onInstantiation(Component< ? > component);
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache ... | void onInstantiation(Component< ? > component);
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache ... |
public void init(wicket.Application application)
{
try
{
String name = application.getName();
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
// register top level application object, but first check whether
// multiple instances of the same application (name) are running and
// if s... | public void init(wicket.Application application)
{
try
{
String name = application.getName();
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
// register top level application object, but first check whether
// multiple instances of the same application (name) are running and
// if s... |
package org.apache.aut.nativelib;
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.myrmido... | package org.apache.aut.nativelib;
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.aut.nat... |
package org.apache.aut.nativelib;
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.myrmido... | package org.apache.aut.nativelib;
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.aut.nat... |
package org.apache.aut.nativelib;
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.myrmido... | package org.apache.aut.nativelib;
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.aut.nat... |
public void setReferenceFiles( final Path path )
throws TaskException
{
//demand create pathlist
if( null == m_referenceFiles )
{
m_referenceFiles = new Path();
}
m_referenceFiles.append( path );
}
| public void setReferenceFiles( final Path path )
throws TaskException
{
//demand create pathlist
if( null == m_referenceFiles )
{
m_referenceFiles = new Path();
}
m_referenceFiles.addPath( path );
}
|
private ArrayList m_dtdLocations = new ArrayList();// sets of file to be validated
private Path m_classpath;
/**
* Specify the class name of the SAX parser to be used. (optional)
*
* @param className should be an implementation of SAX2 <code>org.xml.sax.XMLReader</code>
* or SAX2 <... | private ArrayList m_dtdLocations = new ArrayList();// sets of file to be validated
private Path m_classpath;
/**
* Specify the class name of the SAX parser to be used. (optional)
*
* @param className should be an implementation of SAX2 <code>org.xml.sax.XMLReader</code>
* or SAX2 <... |
public void setPath( final Path path )
throws TaskException
{
if( m_path == null )
{
m_path = path;
}
else
{
m_path.append( path );
}
}
| public void setPath( final Path path )
throws TaskException
{
if( m_path == null )
{
m_path = path;
}
else
{
m_path.addPath( path );
}
}
|
public InputStream getResourceAsStream(String name)
{
if (webappRoot == null)
{
return null;
}
if (name.startsWith("/"))
{
name = name.substring(1);
}
File f = new File(webappRoot, name);
if (!f.exists())
{
return null;
}
else
{
try
{
return new FileInputStream(f);
}
... | public InputStream getResourceAsStream(String name)
{
if (webappRoot == null)
{
return null;
}
if (name.startsWith("/"))
{
name = name.substring(1);
}
File f = new File(webappRoot, name);
if (!f.exists())
{
return null;
}
else
{
try
{
return new FileInputStream(f);
}
... |
public static Test suite() throws Exception {
TestSuite allsuites = new TestSuite();
TestSuite bsh = new TestSuite("BeanShell");
bsh.addTest(new PackageTest("BSH1"));
allsuites.addTest(bsh);
TestSuite suite = new TestSuite("SingleThreaded");
suite.addTest(new PackageTest("CSVParams"));
suite.addTest(ne... | public static Test suite() throws Exception {
TestSuite allsuites = new TestSuite("Function PackageTest");
TestSuite bsh = new TestSuite("BeanShell");
bsh.addTest(new PackageTest("BSH1"));
allsuites.addTest(bsh);
TestSuite suite = new TestSuite("SingleThreaded");
suite.addTest(new PackageTest("CSVParams"... |
public static Test suite() throws Exception {
// ensure the GuiPackage is initialized.
JMeterTreeModel treeModel = new JMeterTreeModel();
JMeterTreeListener treeLis = new JMeterTreeListener(treeModel);
treeLis.setActionHandler(ActionRouter.getInstance());
GuiPackage.getInstance(treeLis, treeModel);
try {
... | public static Test suite() throws Exception {
// ensure the GuiPackage is initialized.
JMeterTreeModel treeModel = new JMeterTreeModel();
JMeterTreeListener treeLis = new JMeterTreeListener(treeModel);
treeLis.setActionHandler(ActionRouter.getInstance());
GuiPackage.getInstance(treeLis, treeModel);
try {
... |
public static Test suite() {
TestSuite ts = new TestSuite();
ts.addTest(new PackageTest("atestDefault"));
ts.addTest(new PackageTest("atestDE"));
ts.addTest(new PackageTest("atestNO"));
ts.addTest(new PackageTest("atestJA"));
ts.addTest(new PackageTest("atestzh_CN"));
ts.addTest(new PackageTest("atestzh_... | public static Test suite() {
TestSuite ts = new TestSuite("Resources PackageTest");
ts.addTest(new PackageTest("atestDefault"));
ts.addTest(new PackageTest("atestDE"));
ts.addTest(new PackageTest("atestNO"));
ts.addTest(new PackageTest("atestJA"));
ts.addTest(new PackageTest("atestzh_CN"));
ts.addTest(ne... |
private void delay(List timers) {
int sum = 0;
Iterator iter = timers.iterator();
while (iter.hasNext()) {
Timer timer = (Timer) iter.next();
TestBeanHelper.prepare((TestElement) timer);
sum += timer.delay();
}
if (sum > 0) {
try {
Thread.sleep(sum);
} catch (InterruptedException e) {
... | private void delay(List timers) {
long sum = 0;
Iterator iter = timers.iterator();
while (iter.hasNext()) {
Timer timer = (Timer) iter.next();
TestBeanHelper.prepare((TestElement) timer);
sum += timer.delay();
}
if (sum > 0) {
try {
Thread.sleep(sum);
} catch (InterruptedException e) {
... |
private void localRegisterService(RemoteServiceRegistrationImpl registration) {
final Object localServiceRegistrationValue = registration.getProperty(Constants.LOCAL_SERVICE_REGISTRATION);
if (localServiceRegistrationValue != null) {
final BundleContext context = Activator.getDefault().getContext();
if (cont... | private void localRegisterService(RemoteServiceRegistrationImpl registration) {
final Object localServiceRegistrationValue = registration.getProperty(Constants.PROXY_SERVICE_REGISTRATION);
if (localServiceRegistrationValue != null) {
final BundleContext context = Activator.getDefault().getContext();
if (cont... |
private void addExistingToClasspath(Path target, Path source) {
String[] list = source.list();
for (int i=0; i<list.length; i++) {
File f = project.resolveFile(list[i]);
if (f.exists()) {
target.setLocation(f.getAbsolutePath());
} else {
... | private void addExistingToClasspath(Path target, Path source) {
String[] list = source.list();
for (int i=0; i<list.length; i++) {
File f = project.resolveFile(list[i]);
if (f.exists()) {
target.setLocation(f);
} else {
log("Dropping... |
private boolean isRightClick(MouseEvent e) {
return (MouseEvent.BUTTON2_MASK & e.getModifiers()) > 0 || (MouseEvent.BUTTON3_MASK == e.getModifiers());
}
| private boolean isRightClick(MouseEvent e) {
return e.isPopupTrigger() || (MouseEvent.BUTTON2_MASK & e.getModifiers()) > 0 || (MouseEvent.BUTTON3_MASK == e.getModifiers());
}
|
public SummaryReport() {
super();
model = new ObjectTableModel(COLUMNS,
Calculator.class,// All rows have this class
new Functor[] {
new Functor("getLabel"), //$NON-NLS-1$
new Functor("getCount"), //$NON-NLS-1$
new Fu... | public SummaryReport() {
super();
model = new ObjectTableModel(COLUMNS,
Calculator.class,// All rows have this class
new Functor[] {
new Functor("getLabel"), //$NON-NLS-1$
new Functor("getCount"), //$NON-NLS-1$
new Fu... |
public void sendMessage(String message) throws ECFException {
if (isCommand(message))
parseCommandAndSend(message, null);
else
showErrorMessage(null, NLS.bind(
Messages.IRCRootContainer_Command_Error,
new Object[] { message, COMMAND_PREFIX }));
}
};
}
| public void sendMessage(String message) throws ECFException {
if (isCommand(message))
parseCommandAndSend(message, null);
else
showErrorMessage(null, NLS.bind(
Messages.IRCRootContainer_Command_Error,
message, COMMAND_PREFIX ));
}
};
}
|
public final void performTasks() {
try {
project.fireTargetStarted(this);
execute();
project.fireTargetFinished(this, null);
}
catch(RuntimeException exc) {
project.fireTargetFinished(this, exc);
throw exc;
}
}
... | public final void performTasks() {
try {
project.fireTargetStarted(this);
execute();
project.fireTargetFinished(this, null);
}
catch(RuntimeException exc) {
project.fireTargetFinished(this, exc);
throw exc;
}
}
... |
private void processGetPreviousRevision( final String line )
{
if( !line.startsWith( "revision" ) )
{
throw new IllegalStateException( "Unexpected line from CVS: " + line );
}
m_previousRevision = line.substring( 9 );
saveEntry();
m_revision = m_prev... | private void processGetPreviousRevision( final String line )
{
if( !line.startsWith( "revision" ) )
{
throw new IllegalStateException( "Unexpected line from CVS: " + line );
}
m_previousRevision = line.substring( 9 );
saveEntry();
m_revision = m_prev... |
public void setVisible (boolean visible) {
checkWidget();
if ((OS.GTK_WIDGET_MAPPED (shellHandle) == visible)) return;
if (visible) {
sendEvent (SWT.Show);
if (isDisposed ()) return;
/*
* In order to ensure that the shell is visible
* and fully painted, dispatch events such as
* GDK_MAP and GDK_CONFIGUR... | public void setVisible (boolean visible) {
checkWidget();
if ((OS.GTK_WIDGET_MAPPED (shellHandle) == visible)) return;
if (visible) {
sendEvent (SWT.Show);
if (isDisposed ()) return;
/*
* In order to ensure that the shell is visible
* and fully painted, dispatch events such as
* GDK_MAP and GDK_CONFIGUR... |
private void implementMungers() {
World world = getIWorld();
for (Iterator iter = mungers.iterator(); iter.hasNext();) {
ShadowMunger munger = (ShadowMunger) iter.next();
munger.implementOn(this);
if (world.getModel() != null) {
System.err.println("munger: " + munger + " on " + this);
AsmAdaptor.n... | private void implementMungers() {
World world = getIWorld();
for (Iterator iter = mungers.iterator(); iter.hasNext();) {
ShadowMunger munger = (ShadowMunger) iter.next();
munger.implementOn(this);
if (world.getModel() != null) {
//System.err.println("munger: " + munger + " on " + this);
AsmAdaptor... |
public void processDescriptor(String descriptorFileName, SAXParser saxParser) {
FileInputStream descriptorStream = null;
try {
DescriptorHandler handler = getDescriptorHandler(srcDir);
/* Parse the ejb deployment descriptor. While it may not
* look... | public void processDescriptor(String descriptorFileName, SAXParser saxParser) {
FileInputStream descriptorStream = null;
try {
DescriptorHandler handler = getDescriptorHandler(srcDir);
/* Parse the ejb deployment descriptor. While it may not
* look... |
protected Object replaceObject(Object streamObj) throws IOException
{
if (streamObj == original)
{
return streamObj;
}
counter++;
// Check for circular reference.
if (checked.containsKey(streamObj))
{
return null;
}
checked.put(original, nu... | protected Object replaceObject(Object streamObj) throws IOException
{
if (streamObj == original)
{
return streamObj;
}
counter++;
// Check for circular reference.
if (checked.containsKey(streamObj))
{
return null;
}
checked.put(streamObj, n... |
public boolean getOverwrite () {
return overwrite;
}
int OFNHookProc (int /*long*/ hdlg, int /*long*/ uiMsg, int /*long*/ wParam, int /*long*/ lParam) {
switch ((int)/*64*/uiMsg) {
case OS.WM_NOTIFY:
OFNOTIFY ofn = new OFNOTIFY ();
OS.MoveMemory (ofn, lParam, OFNOTIFY.sizeof);
if (ofn.code == OS.CDN_SELCH... | public boolean getOverwrite () {
return overwrite;
}
int /*long*/ OFNHookProc (int /*long*/ hdlg, int /*long*/ uiMsg, int /*long*/ wParam, int /*long*/ lParam) {
switch ((int)/*64*/uiMsg) {
case OS.WM_NOTIFY:
OFNOTIFY ofn = new OFNOTIFY ();
OS.MoveMemory (ofn, lParam, OFNOTIFY.sizeof);
if (ofn.code == OS.... |
public void setIncludeDelims(boolean includeDelims) {
this.includeDelims = true;
}
| public void setIncludeDelims(boolean includeDelims) {
this.includeDelims = includeDelims;
}
|
public int topHandle () {
if (isToolBar (control)) return control.handle;
return handle;
}
| public void setSize (Point size) {
if (size == null) error (SWT.ERROR_NULL_ARGUMENT);
setSize (size.x, size.y);
}
int topHandle () {
if (isToolBar (control)) return control.handle;
return handle;
}
|
public void javaToNative (Object object, TransferData transferData){
transferData.result = 0;
if (!checkRTF(object) || !isSupportedType(transferData)) {
DND.error(DND.ERROR_INVALID_DATA);
}
String string = (String)object;
byte [] buffer = Converter.wcsToMbcs (null, string, true);
int /*long*/ pValue = OS.g_mall... | public void javaToNative (Object object, TransferData transferData){
transferData.result = 0;
if (!checkRTF(object) || !isSupportedType(transferData)) {
DND.error(DND.ERROR_INVALID_DATA);
}
String string = (String)object;
byte [] buffer = Converter.wcsToMbcs (null, string, true);
int /*long*/ pValue = OS.g_mall... |
public void javaToNative (Object object, TransferData transferData) {
transferData.result = 0;
if (!checkText(object) || !isSupportedType(transferData)) {
DND.error(DND.ERROR_INVALID_DATA);
}
String string = (String)object;
byte[] buffer = Converter.wcsToMbcs (null, string, true);
if (transferData.type == COM... | public void javaToNative (Object object, TransferData transferData) {
transferData.result = 0;
if (!checkText(object) || !isSupportedType(transferData)) {
DND.error(DND.ERROR_INVALID_DATA);
}
String string = (String)object;
byte[] buffer = Converter.wcsToMbcs (null, string, true);
if (transferData.type == COM... |
public void javaToNative (Object object, TransferData transferData){
transferData.result = 0;
if (!checkRTF(object) || !isSupportedType(transferData)) {
DND.error(DND.ERROR_INVALID_DATA);
}
String string = (String)object;
byte [] buffer = Converter.wcsToMbcs (null, string, true);
int pValue = OS.XtMalloc(buffer... | public void javaToNative (Object object, TransferData transferData){
transferData.result = 0;
if (!checkRTF(object) || !isSupportedType(transferData)) {
DND.error(DND.ERROR_INVALID_DATA);
}
String string = (String)object;
byte [] buffer = Converter.wcsToMbcs (null, string, true);
int pValue = OS.XtMalloc(buffer... |
public void javaToNative (Object object, TransferData transferData) {
transferData.result = 0;
if (!checkText(object) || !isSupportedType(transferData)) {
DND.error(DND.ERROR_INVALID_DATA);
}
String string = (String)object;
byte[] buffer = Converter.wcsToMbcs (null, string, true);
if (transferData.type == COMP... | public void javaToNative (Object object, TransferData transferData) {
transferData.result = 0;
if (!checkText(object) || !isSupportedType(transferData)) {
DND.error(DND.ERROR_INVALID_DATA);
}
String string = (String)object;
byte[] buffer = Converter.wcsToMbcs (null, string, true);
if (transferData.type == COMP... |
private boolean saveToStorageFile(File file) {
// The file will be saved using the formating of the current application - this
// may not be the format of the application that was originally used to create the file
// e.g. if an Excel file is opened in Word, the Word application will save the file in the
// Word f... | private boolean saveToStorageFile(File file) {
// The file will be saved using the formating of the current application - this
// may not be the format of the application that was originally used to create the file
// e.g. if an Excel file is opened in Word, the Word application will save the file in the
// Word f... |
public static void main (String [] args) {
Display display = Display.getDefault ();
final Shell shell = new Shell (display);
shell.setLayout(new FillLayout());
final Label label1 = new Label (shell, SWT.BORDER);
label1.setText ("TEXT");
final Label label2 = new Label (shell, SWT.BORDER);
setDragDrop (label1);
... | public static void main (String [] args) {
Display display = new Display ();
final Shell shell = new Shell (display);
shell.setLayout(new FillLayout());
final Label label1 = new Label (shell, SWT.BORDER);
label1.setText ("TEXT");
final Label label2 = new Label (shell, SWT.BORDER);
setDragDrop (label1);
setDra... |
public AnnotationX[] getAnnotations() {
throw new UnsupportedOperationException("You should resolve this member and call getAnnotations() on the result...");
}
| public AnnotationX[] getAnnotations() {
throw new UnsupportedOperationException("You should resolve this member '"+this+"' and call getAnnotations() on the result...");
}
|
public void run()
{
ResponseAssertion assertion =
new ResponseAssertion(RESPONSE_DATA, CONTAINS, TEST_PATTERN);
SampleResult response = new SampleResult();
response.setResponseData(TEST_STRING.getBytes());
for (int i = 0; i < 100; i++)
... | public void run()
{
ResponseAssertion assertion =
new ResponseAssertion(RESPONSE_DATA, CONTAINS, TEST_PATTERN);
SampleResult response = new SampleResult();
response.setResponseData(TEST_STRING.getBytes());
for (int i = 0; i < 100; i++)
... |
private String renderUrl(Url url)
{
if (url != null)
{
return getResponse().encodeURL(getUrlRenderer().renderUrl(url));
}
else
{
return null;
}
}
| private String renderUrl(Url url)
{
if (url != null)
{
return getOriginalResponse().encodeURL(getUrlRenderer().renderUrl(url));
}
else
{
return null;
}
}
|
public void run() {
log.info("Running the test!");
running = true;
JMeterContextService.startTest();
try {
PreCompiler compiler = new PreCompiler();
test.traverse(compiler);
} catch (RuntimeException e) {
log.error("Error occurred compilin... | public void run() {
log.info("Running the test!");
running = true;
JMeterContextService.startTest();
try {
PreCompiler compiler = new PreCompiler();
test.traverse(compiler);
} catch (RuntimeException e) {
log.error("Error occurred compilin... |
private static final String[] _prefixes;
static {
ClassLoader cl = ProductDerivation.class.getClassLoader();
String pds = Services.getImplementors(ProductDerivation.class, cl);
List derivations = new ArrayList(pds.length);
for (int i = 0; i < pds.length; i++) {
try {
... | private static final String[] _prefixes;
static {
ClassLoader cl = ProductDerivation.class.getClassLoader();
String[] pds = Services.getImplementors(ProductDerivation.class, cl);
List derivations = new ArrayList(pds.length);
for (int i = 0; i < pds.length; i++) {
try ... |
protected Path getCompileClasspath() {
Path classpath = new Path(project);
// add dest dir to classpath so that previously compiled and
// untouched classes are on classpath
if (destDir != null) {
classpath.setLocation(destDir);
}
// Combine the build c... | protected Path getCompileClasspath() {
Path classpath = new Path(project);
// add dest dir to classpath so that previously compiled and
// untouched classes are on classpath
if (destDir != null && getJavac().isIncludeDestClasses()) {
classpath.setLocation(destDir);
... |
protected static int binarySearch(final int values[],
int start, int end, int target) {
if (DEBUG_IDS) {
System.out.println("binarySearch(), target: "+target);
}
// look for target value
while (start <= end) {
// is thi... | protected static int binarySearch(final int values[],
int start, int end, int target) {
if (DEBUG_IDS) {
System.out.println("binarySearch(), target: "+target);
}
// look for target value
while (start <= end) {
// is thi... |
private int addContentSpecNodes(int begin, int end) {
if (begin == end) {
return fGroupIndexStack[fDepth][begin];
}
int middle = (begin + end) / 2;
return addContentSpecNode(fOpStack[fDepth],
addContentSpecNodes(begin, middle),
addContent... | private int addContentSpecNodes(int begin, int end) {
if (begin == end) {
return fGroupIndexStack[fDepth][begin];
}
final int middle = (begin + end) >>> 1;
return addContentSpecNode(fOpStack[fDepth],
addContentSpecNodes(begin, middle),
ad... |
public void testIso8859_1() throws java.io.IOException {
executeTarget("testIso8859-1");
File in = getProject().resolveFile("expected/iso8859-1.test");
File out = getProject().resolveFile("output/iso8859-1.test");
assertTrue(FileUtils.getFileUtils().contentEquals(in, out, false));
... | public void testIso8859_1() throws java.io.IOException {
executeTarget("testIso8859-1");
File in = getProject().resolveFile("expected/iso8859-1.test");
File out = getProject().resolveFile("output/iso8859-1.test");
assertTrue(FileUtils.getFileUtils().contentEquals(in, out, true));
... |
public AssertionResult getResult(SampleResult response) {
// no error as default
AssertionResult result = new AssertionResult(getName());
byte[] responseData = response.getResponseData();
if (responseData.length == 0) {
return result.setResultForNull();
}
... | public AssertionResult getResult(SampleResult response) {
// no error as default
AssertionResult result = new AssertionResult(getName());
byte[] responseData = response.getResponseData();
if (responseData.length == 0) {
return result.setResultForNull();
}
... |
public AssertionResult getResult(SampleResult response) {
AssertionResult result = new AssertionResult(getName());
// Note: initialised with error = failure = false
byte data[] = response.getResponseData();
if (data.length == 0) {
return result.setResultForNull();
... | public AssertionResult getResult(SampleResult response) {
AssertionResult result = new AssertionResult(getName());
// Note: initialised with error = failure = false
byte data[] = response.getResponseData();
if (data.length == 0) {
return result.setResultForNull();
... |
public static Data getDataFromResultSet(ResultSet rs) throws SQLException {
ResultSetMetaData meta = rs.getMetaData();
Data data = new Data();
int numColumns = meta.getColumnCount();
String[] dbCols = new String[numColumns];
for (int i = 0; i < numColumns; i++) {
... | public static Data getDataFromResultSet(ResultSet rs) throws SQLException {
ResultSetMetaData meta = rs.getMetaData();
Data data = new Data();
int numColumns = meta.getColumnCount();
String[] dbCols = new String[numColumns];
for (int i = 0; i < numColumns; i++) {
... |
public void process() {
JMeterContext ctx = getThreadContext();
Sampler sampler = ctx.getCurrentSampler();
if (!(sampler instanceof HTTPSamplerBase)) {// Ignore non-HTTP samplers
return;
}
SampleResult responseText = ctx.getPreviousResult();
if (responseTe... | public void process() {
JMeterContext ctx = getThreadContext();
Sampler sampler = ctx.getCurrentSampler();
if (!(sampler instanceof HTTPSamplerBase)) {// Ignore non-HTTP samplers
return;
}
SampleResult responseText = ctx.getPreviousResult();
if (responseTe... |
public Iterator getEmbeddedResourceURLs(byte[] html, URL baseUrl, URLCollection urls) throws HTMLParseException {
if (log.isDebugEnabled()) {
log.debug("Parsing html of: " + baseUrl);
}
Parser htmlParser = null;
try {
String contents = new String(html);
... | public Iterator getEmbeddedResourceURLs(byte[] html, URL baseUrl, URLCollection urls) throws HTMLParseException {
if (log.isDebugEnabled()) {
log.debug("Parsing html of: " + baseUrl);
}
Parser htmlParser = null;
try {
String contents = new String(html); // T... |
public Iterator getEmbeddedResourceURLs(byte[] html, URL baseUrl, URLCollection urls) {
Perl5Matcher matcher = JMeterUtils.getMatcher();
PatternMatcherInput input = (PatternMatcherInput) localInput.get();
// TODO: find a way to avoid the cost of creating a String here --
// probably... | public Iterator getEmbeddedResourceURLs(byte[] html, URL baseUrl, URLCollection urls) {
Perl5Matcher matcher = JMeterUtils.getMatcher();
PatternMatcherInput input = (PatternMatcherInput) localInput.get();
// TODO: find a way to avoid the cost of creating a String here --
// probably... |
public String sendPostData(URLConnection connection, HTTPSampler sampler) throws IOException {
// Buffer to hold the post body, except file content
StringBuffer postedBody = new StringBuffer(1000);
HTTPFileArg files[] = sampler.getHTTPFiles();
String contentEncoding = sampler.getCo... | public String sendPostData(URLConnection connection, HTTPSampler sampler) throws IOException {
// Buffer to hold the post body, except file content
StringBuffer postedBody = new StringBuffer(1000);
HTTPFileArg files[] = sampler.getHTTPFiles();
String contentEncoding = sampler.getCo... |
public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget ();
Rectangle trim = super.computeTrim (x, y, width, height);
int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);
if ((bits & OS.CCS_NODIVIDER) == 0) trim.height += 2;
return trim;
}
Widget computeTabGroup () {
ToolItem [] items = _... | public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget ();
Rectangle trim = super.computeTrim (x, y, width, height);
int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);
if ((bits & OS.CCS_NODIVIDER) == 0) trim.height += 2;
return trim;
}
Widget computeTabGroup () {
ToolItem [] items = _... |
protected void runDirectoryRequest() throws Exception {
final IFileInfo[] fileInfos = fileStore.childInfos(EFS.NONE, null);
remoteFiles = new IRemoteFile[fileInfos.length];
for (int i = 0; i < fileInfos.length; i++) {
remoteFiles[i] = new EFSRemoteFile(FileIDFactory.getDefault().createFileID(directoryID.getNa... | protected void runDirectoryRequest() throws Exception {
final IFileInfo[] fileInfos = fileStore.childInfos(EFS.NONE, null);
remoteFiles = new IRemoteFile[fileInfos.length];
for (int i = 0; i < fileInfos.length; i++) {
remoteFiles[i] = new EFSRemoteFile(FileIDFactory.getDefault().createFileID(directoryID.getNa... |
public void registerParameter(ParameterExpressionImpl<?> p) {
if (_params == null)
_params = new HashSet<ParameterExpression<?>>();
if (_params.add(p)) {
p.setIndex(_params.size());
}
}
| public void registerParameter(ParameterExpressionImpl<?> p) {
if (_params == null)
_params = new HashSet<ParameterExpression<?>>();
if (_params.add(p)) {
p.setIndex(_params.size()-1);
}
}
|
private String parseUri(String uri) {
int indexOfAt = uri.indexOf('@');
int indexOfColon = uri.indexOf(':');
if (indexOfColon > -1 && indexOfColon < indexOfAt) {
// user:password@host:/path notation
setUsername(uri.substring(0, indexOfColon));
setPassword(... | private String parseUri(String uri) {
int indexOfAt = uri.lastIndexOf('@');
int indexOfColon = uri.indexOf(':');
if (indexOfColon > -1 && indexOfColon < indexOfAt) {
// user:password@host:/path notation
setUsername(uri.substring(0, indexOfColon));
setPassw... |
public ScrollBar getVerticalBar () {
checkWidget();
return verticalBar;
}
void hookEvents () {
super.hookEvents ();
if ((state & CANVAS) != 0 && scrolledHandle != 0) {
int controlProc = display.controlProc;
int [] mask = new int [] {
OS.kEventClassControl, OS.kEventControlDraw,
};
int controlTarget = OS... | public ScrollBar getVerticalBar () {
checkWidget();
return verticalBar;
}
void hookEvents () {
super.hookEvents ();
if ((state & CANVAS) != 0 && scrolledHandle != 0) {
int controlProc = display.controlProc;
int [] mask = new int [] {
OS.kEventClassControl, OS.kEventControlDraw,
};
int controlTarget = OS... |
public void setUp() throws Exception {
super.setUp(RuntimeTest1.class,
"openjpa.InitializeEagerly", "true",
"openjpa.BrokerFactory", TestBrokerFactory.class.getName()
);
}
| public void setUp() throws Exception {
super.setUp(RuntimeTest1.class,
"openjpa.InitializeEagerly", "true",
"openjpa.BrokerFactory", DummyBrokerFactory.class.getName()
);
}
|
public static void copyJ2WFilesFromTmp(Java2WSDataModel model) {
String projectName = model.getProjectName();
IProject project = FileUtils.getProject(projectName);
IType type = JDTUtils.getType(JDTUtils.getJavaProject(projectName), model.getJavaStartingPoint());
IJavaElement javaEle... | public static void copyJ2WFilesFromTmp(Java2WSDataModel model) {
String projectName = model.getProjectName();
IProject project = FileUtils.getProject(projectName);
IType type = JDTUtils.findType(JDTUtils.getJavaProject(projectName), model.getJavaStartingPoint());
IJavaElement javaEl... |
public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
IStatus status = Status.OK_STATUS;
IType startingPoint = JDTUtils.getType(projectName, model.getJavaStartingPoint());
javaResourceChangeListener = new JavaResourceChangeListener(JDTUtils
... | public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
IStatus status = Status.OK_STATUS;
IType startingPoint = JDTUtils.findType(projectName, model.getJavaStartingPoint());
javaResourceChangeListener = new JavaResourceChangeListener(JDTUtils
... |
public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
IStatus status = Status.OK_STATUS;
IJavaProject javaProject = JDTUtils.getJavaProject(model.getProjectName());
if (javaProject != null) {
IType type = JDTUtils.getType(javaProject, model... | public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
IStatus status = Status.OK_STATUS;
IJavaProject javaProject = JDTUtils.getJavaProject(model.getProjectName());
if (javaProject != null) {
IType type = JDTUtils.findType(javaProject, mode... |
private void validateImplementationSelection() {
IType implType = JDTUtils.getType(model.getProjectName(), selectImplementationCombo.getText());
if (implType != null) {
try {
IMethod[] seiMethods = startingPointType.getMethods();
for (IMethod seiMethod : seiM... | private void validateImplementationSelection() {
IType implType = JDTUtils.findType(model.getProjectName(), selectImplementationCombo.getText());
if (implType != null) {
try {
IMethod[] seiMethods = startingPointType.getMethods();
for (IMethod seiMethod : sei... |
protected final BufferedImage getScaledImageInstance()
{
InputStream is = null;
BufferedImage originalImage = null;
try
{
// read original image
is = unscaledImageResource.getResourceStream().getInputStream();
originalImage = ImageIO.read(is);
if (originalImage == null)
{
throw new IOExcept... | protected final BufferedImage getScaledImageInstance()
{
InputStream is = null;
BufferedImage originalImage = null;
try
{
// read original image
is = unscaledImageResource.getResourceStream().getInputStream();
originalImage = ImageIO.read(is);
if (originalImage == null)
{
throw new IOExcept... |
public static boolean checkEnhancementLevel(Class<?> cls, Log log) {
if (cls == null || log == null) {
return false;
}
PersistenceCapable pc = PCRegistry.newInstance(cls, null, true);
if (pc == null) {
return false;
}
if (pc.pcGetEnhancementCon... | public static boolean checkEnhancementLevel(Class<?> cls, Log log) {
if (cls == null || log == null) {
return false;
}
PersistenceCapable pc = PCRegistry.newInstance(cls, null, false);
if (pc == null) {
return false;
}
if (pc.pcGetEnhancementCo... |
private static synchronized PrintWriter getFileWriter(String filename)
throws IOException
{
if (filename == null || filename.length() == 0)
{
return null;
}
PrintWriter writer = (PrintWriter) files.get(filename);
boolean trimmed = true;
if (wr... | private static synchronized PrintWriter getFileWriter(String filename)
throws IOException
{
if (filename == null || filename.length() == 0)
{
return null;
}
PrintWriter writer = (PrintWriter) files.get(filename);
boolean trimmed = true;
if (wr... |
public Object getObjectValue() {
return JOrphanUtils.valueOf(value);
}
| public Object getObjectValue() {
return Boolean.valueOf(value);
}
|
public static GC win32_new(int /*long*/ hDC, GCData data) {
GC gc = new GC();
gc.device = data.device;
data.style |= SWT.LEFT_TO_RIGHT;
if (OS.WIN32_VERSION >= OS.VERSION (4, 10)) {
int flags = OS.GetLayout (hDC);
if ((flags & OS.LAYOUT_RTL) != 0) {
data.style |= SWT.RIGHT_TO_LEFT | SWT.MIRRORED;
}
}
gc.... | public static GC win32_new(int /*long*/ hDC, GCData data) {
GC gc = new GC();
gc.device = data.device;
data.style |= SWT.LEFT_TO_RIGHT;
if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (4, 10)) {
int flags = OS.GetLayout (hDC);
if ((flags & OS.LAYOUT_RTL) != 0) {
data.style |= SWT.RIGHT_TO_LEFT | SWT.MIRROR... |
public void setTabList (Control [] tabList) {
checkWidget ();
if (tabList != null) {
for (int i=0; i<tabList.length; i++) {
Control control = tabList [i];
if (control == null) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.parent != this) e... | public void setTabList (Control [] tabList) {
checkWidget ();
if (tabList != null) {
for (int i=0; i<tabList.length; i++) {
Control control = tabList [i];
if (control == null) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
if (control.parent != this) e... |
protected Column addPrimaryKeyColumn(Table table) {
DBDictionary dict = getConfiguration().getDBDictionaryInstance();
Column pkColumn = table.addColumn(dict.getValidColumnName
(getPrimaryKeyColumn(), table));
pkColumn.setType(dict.getPreferredType(Types.VARCHAR));
pkColum... | protected Column addPrimaryKeyColumn(Table table) {
DBDictionary dict = getConfiguration().getDBDictionaryInstance();
Column pkColumn = table.addColumn(dict.getValidColumnName
(getPrimaryKeyColumnIdentifier(), table));
pkColumn.setType(dict.getPreferredType(Types.VARCHAR));
... |
public void appendTo(Select sel, ExpContext ctx, ExpState state,
SQLBuffer sql, int index) {
Column col = getColumns(state)[index];
if (sel != null)
sel.setSchemaAlias(_schemaAlias);
// if select is null, it means we are not aliasing columns
// (e.g., during a b... | public void appendTo(Select sel, ExpContext ctx, ExpState state,
SQLBuffer sql, int index) {
Column col = getColumns(state)[index];
if (sel != null)
sel.setSchemaAlias(_schemaAlias);
// if select is null, it means we are not aliasing columns
// (e.g., during a b... |
public Joinable assertJoinable(Column col) {
Joinable join = getJoinable(col);
if (join == null)
throw new MetaDataException(_loc.get("no-joinable",
col.getFullName()));
return join;
}
| public Joinable assertJoinable(Column col) {
Joinable join = getJoinable(col);
if (join == null)
throw new MetaDataException(_loc.get("no-joinable",
col.getQualifiedPath().toString()));
return join;
}
|
protected void setObject(Column col, Object val, int metaType,
boolean overrideDefault)
throws SQLException {
// make sure we're not setting two different values
// unless the given column is an implicit relationship and value
// changes from logical default to non-default
... | protected void setObject(Column col, Object val, int metaType,
boolean overrideDefault)
throws SQLException {
// make sure we're not setting two different values
// unless the given column is an implicit relationship and value
// changes from logical default to non-default
... |
public static final boolean DEBUG_DOCUMENT_PARTITIONER = Boolean.valueOf(
Platform.getDebugOption(PLUGIN_ID + "/debug/document_partitioner")).booleanValue();
| public static final boolean DEBUG_DOCUMENT_PARTITIONER = Boolean.valueOf(
Platform.getDebugOption(PLUGIN_ID + "/debug/documentPartitioner")).booleanValue();
|
public SchemaGroup getSchemaGroup() {
if (_schema == null) {
if (_action.contains(ACTION_BUILD_SCHEMA)) {
DynamicSchemaFactory factory = new DynamicSchemaFactory();
factory.setConfiguration(_conf);
_schema = factory;
} else if (_readSch... | public SchemaGroup getSchemaGroup() {
if (_schema == null) {
if (_action.indexOf(ACTION_BUILD_SCHEMA) != -1) {
DynamicSchemaFactory factory = new DynamicSchemaFactory();
factory.setConfiguration(_conf);
_schema = factory;
} else if (_re... |
public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters,ResolvedType newDeclaringType, boolean isParameterized,List aliases) {
if (//isParameterized && <-- might need this bit...
!getDeclaringType().isGenericType()) {
throw new IllegalStateException("Can't ask to parameterize a member of ... | public ResolvedMemberImpl parameterizedWith(UnresolvedType[] typeParameters,ResolvedType newDeclaringType, boolean isParameterized,List aliases) {
if (//isParameterized && <-- might need this bit...
!getDeclaringType().isGenericType()) {
throw new IllegalStateException("Can't ask to parameterize a member of ... |
protected String getImplementationId()
{
return "wicket-default";
}
| protected String getImplementationId()
{
return "wicket-default-autocomplete";
}
|
public void propertyChange(PropertyChangeEvent evt) {
Object source = evt.getSource();
if (source instanceof ComboStringEditor && source != null) {
ComboStringEditor cse = (ComboStringEditor) source;
String lang = cse.getAsText().toLowerCase();
if (languagePropert... | public void propertyChange(PropertyChangeEvent evt) {
Object source = evt.getSource();
if (source instanceof ComboStringEditor) {
ComboStringEditor cse = (ComboStringEditor) source;
String lang = cse.getAsText().toLowerCase();
if (languageProperties.containsKey(la... |
public void onChange()
{
log.info("A properties files has changed. Removing all entries " +
"from the cache. Resource: " + resourceStream);
// Clear the whole cache as associated localized files may
// be affected and may need reloading as well.
clearCache();
// Inform all listeners
... | public void onChange()
{
log.info("A properties files has changed. Removing all entries " +
"from the cache. Resource: " + resourceStream);
// Clear the whole cache as associated localized files may
// be affected and may need reloading as well.
clearCache();
// Inform all listeners
... |
public synchronized String execute(SampleResult previousResult, Sampler currentSampler)
throws InvalidVariableException {
globalCounter++;
JMeterVariables vars = getVariables();
boolean perThread = Boolean.valueOf(((CompoundVariable) variables[0]).execute()).booleanValue();
... | public synchronized String execute(SampleResult previousResult, Sampler currentSampler)
throws InvalidVariableException {
globalCounter++;
JMeterVariables vars = getVariables();
boolean perThread = Boolean.parseBoolean(((CompoundVariable) variables[0]).execute());
Str... |
public Object clone() {
// TODO - fix so that this is only called once per test, instead of at every clone
// Perhaps save previous filename, and only load if it has changed?
this.resolveReplacementSubTree(null);
IncludeController clone = (IncludeController) super.clone();
cl... | public Object clone() {
// TODO - fix so that this is only called once per test, instead of at every clone
// Perhaps save previous filename, and only load if it has changed?
this.resolveReplacementSubTree(null);
IncludeController clone = (IncludeController) super.clone();
cl... |
protected void editorContextMenuAboutToShow(final IMenuManager menu) {
menu.add(new Separator("mwe"));
super.editorContextMenuAboutToShow(menu);
final ActionContext context = new ActionContext(getSelectionProvider().getSelection());
searchActionGroup.setContext(context);
searchActionGroup.fillContextMenu(me... | protected void editorContextMenuAboutToShow(final IMenuManager menu) {
menu.add(new Separator("Xpand"));
super.editorContextMenuAboutToShow(menu);
final ActionContext context = new ActionContext(getSelectionProvider().getSelection());
searchActionGroup.setContext(context);
searchActionGroup.fillContextMenu(... |
private static PrintWriter getFileWriter(String filename, SampleSaveConfiguration saveConfig)
throws IOException {
if (filename == null || filename.length() == 0) {
return null;
}
filename = FileServer.resolveBaseRelativeName(filename);
FileEntry fe = files.ge... | private static PrintWriter getFileWriter(String filename, SampleSaveConfiguration saveConfig)
throws IOException {
if (filename == null || filename.length() == 0) {
return null;
}
filename = FileServer.resolveBaseRelativeName(filename);
FileEntry fe = files.ge... |
public IRemoteFileSystemRequest sendDirectoryRequest(IFileID directoryID, IRemoteFileSystemListener listener) throws RemoteFileSystemException {
Assert.isNotNull(directoryID);
Assert.isNotNull(listener);
URL url;
try {
url = directoryID.getURL();
} catch (final MalformedURLException e) {
throw new Remo... | public IRemoteFileSystemRequest sendDirectoryRequest(IFileID directoryID, IRemoteFileSystemListener listener) throws RemoteFileSystemException {
Assert.isNotNull(directoryID);
Assert.isNotNull(listener);
URL url;
try {
url = directoryID.getURL();
} catch (final MalformedURLException e) {
throw new Remo... |
protected Sample addNewSample(long sample, long timeStamp, boolean success)
{
int counter = 0;
float average;
long deviation, median;
synchronized (statCalc)
{
statCalc.addValue(sample);
counter = statCalc.getCount();
average = (float) ... | protected Sample addNewSample(long sample, long timeStamp, boolean success)
{
int counter = 0;
float average;
long deviation, median;
synchronized (statCalc)
{
statCalc.addValue(sample);
counter = statCalc.getCount();
average = (float) ... |
protected void sort(List list)
{
if(sortingComparator != null);
{
Collections.sort(list, sortingComparator);
}
}
| protected void sort(List list)
{
if(sortingComparator != null)
{
Collections.sort(list, sortingComparator);
}
}
|
public Rectangle getBounds (int columnIndex) {
checkWidget ();
if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
TableColumn[] columns = parent.columns;
int columnCount = columns.length;
int validColumnCount = Math.max (1, columnCount);
if (!(0 <= columnIndex && columnIndex < validColumnCount... | public Rectangle getBounds (int columnIndex) {
checkWidget ();
if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
TableColumn[] columns = parent.columns;
int columnCount = columns.length;
int validColumnCount = Math.max (1, columnCount);
if (!(0 <= columnIndex && columnIndex < validColumnCount... |
public Rectangle getBounds (int columnIndex) {
checkWidget ();
if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
if (!isAvailable ()) return new Rectangle (0, 0, 0, 0);
TreeColumn[] columns = parent.columns;
int columnCount = columns.length;
int validColumnCount = Math.max (1, columnCount);
... | public Rectangle getBounds (int columnIndex) {
checkWidget ();
if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
if (!isAvailable ()) return new Rectangle (0, 0, 0, 0);
TreeColumn[] columns = parent.columns;
int columnCount = columns.length;
int validColumnCount = Math.max (1, columnCount);
... |
public void renderJavascriptReference(String url, String id)
{
if (Strings.isEmpty(url))
{
throw new IllegalArgumentException("url cannot be empty or null");
}
if (!closed)
{
List token1 = Arrays.asList(new Object[] { "javascript", url });
List token2 = Arrays.asList(new Object[] { "javascript", id... | public void renderJavascriptReference(String url, String id)
{
if (Strings.isEmpty(url))
{
throw new IllegalArgumentException("url cannot be empty or null");
}
if (!closed)
{
List token1 = Arrays.asList(new Object[] { "javascript", url });
List token2 = Arrays.asList(new Object[] { "javascript", id... |
public static Label getInstance(MarkupContainer parent, final String id)
{
Label label = (Label)idToLabel.get(id);
if (label == null)
{
label = new Label(parent, id);
idToLabel.put(id, label);
}
return label;
}
}
| public static Label getInstance(MarkupContainer parent, final String id)
{
Label label = idToLabel.get(id);
if (label == null)
{
label = new Label(parent, id);
idToLabel.put(id, label);
}
return label;
}
}
|
public ListObject getItem(int index)
{
return (ListObject)super.get(index);
}
| public ListObject getItem(int index)
{
return super.get(index);
}
|
public final void onSubmit()
{
final RequestCycle cycle = getRequestCycle();
PageParameters parameters = new PageParameters();
final Book book = (Book)getModelObject();
parameters.put("id", new Long(book.getId()));
cycle.setResponsePage(getPageFactory().newPage(BookDetails.class, parameters));
cyc... | public final void onSubmit()
{
final RequestCycle cycle = getRequestCycle();
PageParameters parameters = new PageParameters();
final Book book = getModelObject();
parameters.put("id", new Long(book.getId()));
cycle.setResponsePage(getPageFactory().newPage(BookDetails.class, parameters));
cycle.set... |
public Contact get(long id)
{
Contact c = (Contact)map.get(new Long(id));
if (c == null)
{
throw new RuntimeException("contact with id [" + id + "] not found in the database");
}
return c;
}
| public Contact get(long id)
{
Contact c = map.get(new Long(id));
if (c == null)
{
throw new RuntimeException("contact with id [" + id + "] not found in the database");
}
return c;
}
|
public void handleAsynchEvent(ConnectionEvent event) throws IOException;
} | public void handleAsynchEvent(AsynchConnectionEvent event) throws IOException;
} |
public Object handleSynchEvent(ConnectionEvent event) throws IOException;
} | public Object handleSynchEvent(SynchConnectionEvent event) throws IOException;
} |
public void actionPerformed(ActionEvent e)
{
String action = e.getActionCommand();
if (action.equals("Delete"))
{
if (tableModel.getRowCount() > 0)
{
// If a table cell is being edited, we must cancel the editing
// before deleting... | public void actionPerformed(ActionEvent e)
{
String action = e.getActionCommand();
if (action.equals("Delete"))
{
if (tableModel.getRowCount() > 0)
{
// If a table cell is being edited, we must cancel the editing
// before deleting... |
public static boolean DEBUG;
boolean debug = DEBUG;
boolean tracking = DEBUG;
Error [] errors;
Object [] objects;
Object trackingLock;
/* Colormap and reference count */
GdkColor [] gdkColors;
int [] colorRefCount;
/* Disposed flag */
boolean disposed;
/* Warning and Error Handlers */
int /*long*/ lo... | public static boolean DEBUG;
boolean debug = DEBUG;
boolean tracking = DEBUG;
Error [] errors;
Object [] objects;
Object trackingLock;
/* Colormap and reference count */
GdkColor [] gdkColors;
int [] colorRefCount;
/* Disposed flag */
boolean disposed;
/* Warning and Error Handlers */
int /*long*/ lo... |
public String getWicketAjaxBaseUrlEncodedInLastResponse() throws IOException,
ResourceStreamNotFoundException, ParseException
{
XmlPullParser parser = new XmlPullParser();
parser.parse(getLastResponseAsString());
XmlTag tag;
while ((tag = (XmlTag)parser.nextTag()) != null)
{
if (tag.isOpen() && tag.get... | public String getWicketAjaxBaseUrlEncodedInLastResponse() throws IOException,
ResourceStreamNotFoundException, ParseException
{
XmlPullParser parser = new XmlPullParser();
parser.parse(getLastResponseAsString());
XmlTag tag;
while ((tag = (XmlTag)parser.nextTag()) != null)
{
if (tag.isOpen() && tag.get... |
// As long as this is public api the developermenat and deployment mode
// should counter act each other for all properties.
if (DEVELOPMENT.equalsIgnoreCase(configurationType))
{
getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND);
getDebugSettings().setComponentUseCheck(true);
getMark... | // As long as this is public api the developermenat and deployment mode
// should counter act each other for all properties.
if (DEVELOPMENT.equalsIgnoreCase(configurationType))
{
getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND);
getDebugSettings().setComponentUseCheck(true);
getMark... |
public InputStream getInputStream() throws IOException {
if (isReference()) {
return ((Resource) getCheckedRef()).getInputStream();
}
dieOnCircularReference();
ClassLoader cl = null;
if (loader != null) {
cl = (ClassLoader) loader.getReferencedObject()... | public InputStream getInputStream() throws IOException {
if (isReference()) {
return ((Resource) getCheckedRef()).getInputStream();
}
dieOnCircularReference();
ClassLoader cl = null;
if (loader != null) {
cl = (ClassLoader) loader.getReferencedObject()... |
public void showSelection () {
checkWidget ();
int index = OS.SendMessage (handle, OS.LVM_GETNEXTITEM, -1, OS.LVNI_SELECTED);
if (index != -1) showItem (index);
}
String toolTipText (NMTTDISPINFO hdr) {
int hwndToolTip = OS.SendMessage (handle, OS.LVM_GETTOOLTIPS, 0, 0);
if (hwndToolTip == hdr.hwndFrom && toolTi... | public void showSelection () {
checkWidget ();
int index = OS.SendMessage (handle, OS.LVM_GETNEXTITEM, -1, OS.LVNI_SELECTED);
if (index != -1) showItem (index);
}
String toolTipText (NMTTDISPINFO hdr) {
int hwndToolTip = OS.SendMessage (handle, OS.LVM_GETTOOLTIPS, 0, 0);
if (hwndToolTip == hdr.hwndFrom && toolTi... |
public List getArgumentDesc();
} | public List<String> getArgumentDesc();
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.