buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
private void internalInvoke(final Component component, final Object target)
{
Boolean frozen = null;
// save a reference to the page because the component can be removed
// during the invocation of the listener and thus lose its parent
Page page = component.getPage();
if (isAjax(component))
{
// do n... | private void internalInvoke(final Component component, final Object target)
{
Boolean frozen = null;
// save a reference to the page because the component can be removed
// during the invocation of the listener and thus lose its parent
Page page = component.getPage();
if (isAjax(component))
{
// do n... |
public IRequestableComponent getComponent()
{
if (component == null)
{
IRequestablePage page = getPageInstance();
component = page.get(componentPath);
if (component == null)
{
/*
* on stateless pages it is possible that the component may not yet exist because it
* couldve been created i... | public IRequestableComponent getComponent()
{
if (component == null)
{
IRequestablePage page = getPageInstance();
component = page.get(componentPath);
if (component == null)
{
/*
* on stateless pages it is possible that the component may not yet exist because it
* couldve been created i... |
public final void renderFooter(Response response)
{
response.write("<ul>");
}
| public final void renderFooter(Response response)
{
response.write("</ul>");
}
|
public void setAlignment (int alignment) {
checkWidget ();
if ((alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER)) == 0) return;
int index = parent.indexOf (this);
if (index == -1 || index == 0) return;
style &= ~(SWT.LEFT | SWT.RIGHT | SWT.CENTER);
style |= alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER);
int /*l... | public void setAlignment (int alignment) {
checkWidget ();
if ((alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER)) == 0) return;
int index = parent.indexOf (this);
if (index == -1 || index == 0) return;
style &= ~(SWT.LEFT | SWT.RIGHT | SWT.CENTER);
style |= alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER);
int /*l... |
public void setAlignment (int alignment) {
checkWidget ();
if ((alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER)) == 0) return;
int index = parent.indexOf (this);
if (index == -1 || index == 0) return;
style &= ~(SWT.LEFT | SWT.RIGHT | SWT.CENTER);
style |= alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER);
int /*l... | public void setAlignment (int alignment) {
checkWidget ();
if ((alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER)) == 0) return;
int index = parent.indexOf (this);
if (index == -1 || index == 0) return;
style &= ~(SWT.LEFT | SWT.RIGHT | SWT.CENTER);
style |= alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER);
int /*l... |
private JPopupMenu createFilterMenu() {
JPopupMenu filterMenu = new JPopupMenu();
IProgramElement.Accessibility[] accessibility = IProgramElement.Accessibility.ALL;
for (int i = 0; i < accessibility.length; i++) {
CheckBoxSelectionMenuButton menuItem = new CheckBoxSelectionMenuButton(accessibility[i]);
men... | private JPopupMenu createFilterMenu() {
JPopupMenu filterMenu = new JPopupMenu();
IProgramElement.Accessibility[] accessibility = IProgramElement.Accessibility.ALL;
for (int i = 0; i < accessibility.length; i++) {
CheckBoxSelectionMenuButton menuItem = new CheckBoxSelectionMenuButton(accessibility[i]);
men... |
private boolean matches(IProgramElement node, String sourceFilePath, int lineNumber) {
// try {
// if (node != null && node.getSourceLocation() != null)
// System.err.println("====\n1: " +
// sourceFilePath + "\n2: " +
// node.getSourceLocation().getSourceFile().getCanonicalPath().equals(sourceFilePa... | private boolean matches(IProgramElement node, String sourceFilePath, int lineNumber) {
// try {
// if (node != null && node.getSourceLocation() != null)
// System.err.println("====\n1: " +
// sourceFilePath + "\n2: " +
// node.getSourceLocation().getSourceFile().getCanonicalPath().equals(sourceFilePa... |
public int add (Image image) {
int count = OS.ImageList_GetImageCount (handle);
int index = 0;
while (index < count) {
if (images [index] != null) {
if (images [index].isDisposed ()) images [index] = null;
}
if (images [index] == null) break;
index++;
}
if (count == 0) {
Rectangle rect = image.getBoun... | public int add (Image image) {
int count = OS.ImageList_GetImageCount (handle);
int index = 0;
while (index < count) {
if (images [index] != null) {
if (images [index].isDisposed ()) images [index] = null;
}
if (images [index] == null) break;
index++;
}
if (count == 0) {
Rectangle rect = image.getBoun... |
protected OpenJPAEntityManagerFactorySPI createNamedEMF(Class<?>... types) {
Map<Object, Object> map = new HashMap<Object, Object>();
map.put("openjpa.jdbc.SynchronizeMappings", "buildSchema(ForeignKeys=true," + "SchemaAction='add')");
map.put("openjpa.jdbc.QuerySQLCache", "false");
... | protected OpenJPAEntityManagerFactorySPI createNamedEMF(Class<?>... types) {
Map<Object, Object> map = new HashMap<Object, Object>();
map.put("openjpa.jdbc.SynchronizeMappings", "buildSchema(ForeignKeys=true," + "SchemaAction='add')");
map.put("openjpa.jdbc.QuerySQLCache", "false");
... |
public void setFont (int index, Font font) {
checkWidget ();
if (font != null && font.isDisposed ()) {
SWT.error (SWT.ERROR_INVALID_ARGUMENT);
}
int count = Math.max (1, parent.columnCount);
if (0 > index || index > count - 1) return;
if (cellFont == null) {
if (font == null) return;
cellFont = new Font [co... | public void setFont (int index, Font font) {
checkWidget ();
if (font != null && font.isDisposed ()) {
SWT.error (SWT.ERROR_INVALID_ARGUMENT);
}
int count = Math.max (1, parent.columnCount);
if (0 > index || index > count - 1) return;
if (cellFont == null) {
if (font == null) return;
cellFont = new Font [co... |
public void show(WindowEvent event) {
log (eventName + ".show", event);
}
});
}
}
boolean rtlSupport() {
return false;
}
/**
* Sets the state of the "Example" widgets.
*/
void setExampleWidgetState () {
super.setExampleWidgetState ();
mozillaButton.setSelection (browser == null ? fal... | public void show(WindowEvent event) {
log (eventName + ".show", event);
}
});
}
}
boolean rtlSupport() {
return false;
}
/**
* Sets the state of the "Example" widgets.
*/
void setExampleWidgetState () {
super.setExampleWidgetState ();
mozillaButton.setSelection (browser == null ? fal... |
public void analyze(ExecutionContext ctx, Set<AnalysationIssue> issues) {
try {
if (ctx.getCallback() != null)
if (!ctx.getCallback().pre(this, ctx))
return;
boolean knownNamespace = false;
if (!ctx.getNamespaces().contains(importedId.getValue())) {
for (Type t : ctx.getAllTypes()) {
if (i... | public void analyze(ExecutionContext ctx, Set<AnalysationIssue> issues) {
try {
if (ctx.getCallback() != null)
if (!ctx.getCallback().pre(this, ctx))
return;
boolean knownNamespace = false;
if (!ctx.getNamespaces().contains(importedId.getValue())) {
for (Type t : ctx.getAllTypes()) {
if (i... |
protected void onComponentTag(final ComponentTag tag)
{
checkComponentTag(tag, "form");
super.onComponentTag(tag);
tag.put("method", "POST");
tag.put("action", Strings.replaceAll(urlFor(IFormSubmitListener.class), "&", "&"));
}
| protected void onComponentTag(final ComponentTag tag)
{
checkComponentTag(tag, "form");
super.onComponentTag(tag);
tag.put("method", "post");
tag.put("action", Strings.replaceAll(urlFor(IFormSubmitListener.class), "&", "&"));
}
|
public void initialize()
{
authType = null;
method = "POST";
cookies.clear();
setDefaultHeaders();
path = null;
characterEncoding = "UTF-8";
parameters.clear();
attributes.clear();
}
| public void initialize()
{
authType = null;
method = "post";
cookies.clear();
setDefaultHeaders();
path = null;
characterEncoding = "UTF-8";
parameters.clear();
attributes.clear();
}
|
public void addSchema(ClassMapping mapping, SchemaGroup group) {
// Since the table is created by openjpa internally
// we can create the table for each schema within the PU
// in here.
Schema[] schemas = group.getSchemas();
for (int i = 0; i < schemas.length; i++) {... | public void addSchema(ClassMapping mapping, SchemaGroup group) {
// Since the table is created by openjpa internally
// we can create the table for each schema within the PU
// in here.
Schema[] schemas = group.getSchemas();
for (int i = 0; i < schemas.length; i++) {... |
private static TestSuite suite(String searchPaths) {
TestSuite suite = new TestSuite("All Tests");
System.out.println("Scanning "+searchPaths+ " for test cases");
int tests=0;
int suites=0;
try {
log.info("ClassFinder(TestCase)");
List<String> classLis... | private static TestSuite suite(String searchPaths) {
TestSuite suite = new TestSuite("All Tests");
System.out.println("Scanning "+searchPaths+ " for test cases");
int tests=0;
int suites=0;
try {
log.info("ClassFinder(TestCase)");
List<String> classLis... |
private void depth(final ComponentEvent<?> event)
{
IEventSink sink = event.getSink();
boolean targetsApplication = sink instanceof Application;
boolean targetsSession = targetsApplication || sink instanceof Session;
boolean targetsCycle = targetsSession || sink instanceof RequestCycle;
boolean targetsComp... | private void depth(final ComponentEvent<?> event)
{
IEventSink sink = event.getSink();
boolean targetsApplication = sink instanceof Application;
boolean targetsSession = targetsApplication || sink instanceof Session;
boolean targetsCycle = targetsSession || sink instanceof RequestCycle;
boolean targetsComp... |
public String toString() {
StringBuffer mySB = new StringBuffer();
mySB.append("Samples: " + this.getCount() + " ");
mySB.append("Avg: " + this.getMean() + " ");
mySB.append("Min: " + this.getMin() + " ");
mySB.append("Max: " + this.getMax() + " ");
mySB.append("... | public String toString() {
StringBuilder mySB = new StringBuilder();
mySB.append("Samples: " + this.getCount() + " ");
mySB.append("Avg: " + this.getMean() + " ");
mySB.append("Min: " + this.getMin() + " ");
mySB.append("Max: " + this.getMax() + " ");
mySB.append... |
public A(final PageParameters parameters)
{
((WicketApplication)WebApplication.get()).intercept();
file = parameters.getString("file");
add(new Label("file", file));
}
| public A(final PageParameters parameters)
{
((WicketApplication)WebApplication.get()).intercept();
file = parameters.getNamedParameter("file").toString();
add(new Label("file", file));
}
|
public boolean accept(EventObject event);
} | boolean accept(EventObject event);
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999, 2000 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
* are... |
public int indexOf (TreeItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
int items = OS.ItemsControl_Items (handle);
int index = OS.ItemCollection_IndexOf (items, item.handle);
OS.GCHandle_Free (items);
return index;
}
vo... | public int indexOf (TreeItem item) {
checkWidget ();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
int items = OS.ItemsControl_Items (handle);
int index = OS.ItemCollection_IndexOf (items, item.handle);
OS.GCHandle_Free (items);
return index;
}
vo... |
protected void extractFile( FileUtils fileUtils, File srcF, File dir,
InputStream compressedInputStream,
String entryName,
Date entryDate, boolean isDirectory )
throws IOException, TaskException
{
if... | protected void extractFile( FileUtils fileUtils, File srcF, File dir,
InputStream compressedInputStream,
String entryName,
Date entryDate, boolean isDirectory )
throws IOException, TaskException
{
if... |
public boolean eval() throws BuildException;
}
| boolean eval() throws BuildException;
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001 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
* are me... |
public ClassFile getNextClassFile();
} | ClassFile getNextClassFile();
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000 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
* are met:
*
... |
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
String url = tag.getAttributes().getString("src");
url = url + ((url.indexOf("?") >= 0) ? "&" : "?");
url = url + "wicket:antiCache=" + Math.random();
tag.put("src", url);
}
| protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
String url = tag.getAttributes().getString("src");
url = url + ((url.indexOf("?") >= 0) ? "&" : "?");
url = url + "wicket:antiCache=" + System.currentTimeMillis();
tag.put("src", url);
}
|
public final Class resolveClass(final String classname)
/*
* $Id$
* $Revision$ $Date$
*
* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may ob... | public final Class resolveClass(final String classname)
/*
* $Id$
* $Revision$ $Date$
*
* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may ob... |
private boolean sameDefinition(
AntTypeDefinition def, AntTypeDefinition old) {
boolean defValid = validDefinition(def);
boolean sameValidity = !(defValid ^ validDefinition(old));
return sameValidity && (!defValid || def.sameDefinition(old, project));
}
| private boolean sameDefinition(
AntTypeDefinition def, AntTypeDefinition old) {
boolean defValid = validDefinition(def);
boolean sameValidity = defValid ^ !validDefinition(old);
return sameValidity && (!defValid || def.sameDefinition(old, project));
}
|
public void testWICKET_1927()
{
tester.getApplication().getMarkupSettings().setDefaultMarkupEncoding("UTF-8");
tester.setupRequestAndResponse();
tester.getWicketSession().setLocale(new Locale("de"));
LocalizedMessagePage page = new LocalizedMessagePage();
tester.startPage(page);
tester.processRequestCyc... | public void testWICKET_1927()
{
tester.getApplication().getMarkupSettings().setDefaultMarkupEncoding("UTF-8");
tester.setupRequestAndResponse();
tester.getWicketSession().setLocale(new Locale("de"));
LocalizedMessagePage page = new LocalizedMessagePage();
tester.startPage(page);
tester.processRequestCyc... |
public static final String version = "1.2"; // $NON-NLS-1$
// This is written to JMX files by ScriptWrapperConverter
static String propertiesVersion = "";// read from properties file; written to JMX files
static final String PROPVERSION = "1.8";// Expected $NON-NLS-1$
// Internal information only
st... | public static final String version = "1.2"; // $NON-NLS-1$
// This is written to JMX files by ScriptWrapperConverter
static String propertiesVersion = "";// read from properties file; written to JMX files
static final String PROPVERSION = "1.8";// Expected $NON-NLS-1$
// Internal information only
st... |
public void execute()
throws TaskException
{
//Adds the jars or directories containing Antlr this should make the forked
//JVM work without having to specify it directly.
addClasspathEntry( "/antlr/Tool.class" );
validateAttributes();
//TODO: use ANTLR to parse ... | public void execute()
throws TaskException
{
//Adds the jars or directories containing Antlr this should make the forked
//JVM work without having to specify it directly.
addClasspathEntry( "/antlr/Tool.class" );
validateAttributes();
//TODO: use ANTLR to parse ... |
public static BufferedImage toBufferedImage(ByteMatrix matrix) {
int width = matrix.getWidth();
int height = matrix.getHeight();
BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
image... | public static BufferedImage toBufferedImage(ByteMatrix matrix) {
int width = matrix.getWidth();
int height = matrix.getHeight();
BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
image... |
public String convertToString(Object value, Locale locale)
{
if (value == null || "".equals(value))
{
return "";
}
try
{
return (String)Objects.convertValue(value, String.class);
}
catch (Exception e)
{
throw new ConversionException("Could not convert object of type: " +
va... | public String convertToString(Object value, Locale locale)
{
if (value == null || "".equals(value))
{
return "";
}
try
{
return (String)Objects.convertValue(value, String.class);
}
catch (Exception e)
{
throw new ConversionException("Could not convert object of type: " +
va... |
public synchronized String execute(SampleResult previousResult, Sampler currentSampler)
throws InvalidVariableException {
if (bshInterpreter == null) // did we find BeanShell?
{
throw new InvalidVariableException("BeanShell not found");
}
JMeterContext jmctx = JMeterContextService.getContext();
JMete... | public synchronized String execute(SampleResult previousResult, Sampler currentSampler)
throws InvalidVariableException {
if (bshInterpreter == null) // did we find BeanShell?
{
throw new InvalidVariableException("BeanShell not found");
}
JMeterContext jmctx = JMeterContextService.getContext();
JMete... |
public void doAction(ActionEvent e) {
JFileChooser chooser = FileDialoger.promptToOpenFile(new String[] { ".jmx" }); //$NON-NLS-1$
if (chooser == null) {
return;
}
InputStream reader = null;
try {
File f = chooser.getSelectedFile();
if (f != null) {
boolean isTestPlan = fals... | public void doAction(ActionEvent e) {
JFileChooser chooser = FileDialoger.promptToOpenFile(new String[] { ".jmx" }); //$NON-NLS-1$
if (chooser == null) {
return;
}
InputStream reader = null;
try {
File f = chooser.getSelectedFile();
if (f != null) {
boolean isTestPlan = fals... |
protected Map variablesMap(IValidatable validatable)
{
final Map map = super.variablesMap(validatable);
map.put("pattern", pattern);
return map;
}
| protected Map variablesMap(IValidatable validatable)
{
final Map map = super.variablesMap(validatable);
map.put("pattern", pattern.pattern());
return map;
}
|
public void addContent( String msg )
throws TaskException
{
message += getProject().replaceProperties( msg );
}
| public void addContent( String msg )
throws TaskException
{
message = msg;
}
|
public RuntimeException translate(RuntimeException re) {
RuntimeException ex = toPersistenceException(re);
if (!(ex instanceof NonUniqueResultException)
&& !(ex instanceof NoResultException)
&& !throwing) {
try {
... | public RuntimeException translate(RuntimeException re) {
RuntimeException ex = toPersistenceException(re);
if (!(ex instanceof NonUniqueResultException)
&& !(ex instanceof NoResultException)
&& !throwing) {
try {
... |
public boolean isDerivedFrom(String typeNamespaceArg,
String typeNameArg,
int derivationMethod) {
if (type != null) {
if (type instanceof XSSimpleTypeDefinition) {
return ((XSSimpleTypeDecl) type).isDOMDerivedFro... | public boolean isDerivedFrom(String typeNamespaceArg,
String typeNameArg,
int derivationMethod) {
if (type != null) {
if (type instanceof XSSimpleTypeDecl) {
return ((XSSimpleTypeDecl) type).isDOMDerivedFrom(
... |
protected final void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
{
// Iterate through choices
final List<? extends T> choices = getChoices();
// Buffer to hold generated body
final AppendingStringBuffer buffer = new AppendingStringBuffer((choices.size() + 1) * 70);
//... | protected final void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
{
// Iterate through choices
final List<? extends T> choices = getChoices();
// Buffer to hold generated body
final AppendingStringBuffer buffer = new AppendingStringBuffer((choices.size() + 1) * 70);
//... |
public MarkupFragment getMarkupFragment(String path)
{
// First try the associated markup
MarkupFragment fragment = getAssociatedMarkupFragment(false);
if (fragment != null)
{
fragment = fragment.getChildFragment(path, false);
}
if (fragment == null)
{
fragment = super.getMarkupFragment(path);
... | public MarkupFragment getMarkupFragment(String path)
{
// First try the associated markup
MarkupFragment fragment = getAssociatedMarkup(false);
if (fragment != null)
{
fragment = fragment.getChildFragment(path, false);
}
if (fragment == null)
{
fragment = super.getMarkupFragment(path);
}
ret... |
private MarkupFragment getFragment()
{
MarkupFragment fragment = this.markupProvider.getAssociatedMarkupFragment(false);
if (fragment == null)
{
fragment = this.markupProvider.getMarkupFragment();
}
fragment = fragment.getChildFragment(markupId, true);
return fragment;
}
| private MarkupFragment getFragment()
{
MarkupFragment fragment = this.markupProvider.getAssociatedMarkup(false);
if (fragment == null)
{
fragment = this.markupProvider.getMarkupFragment();
}
fragment = fragment.getChildFragment(markupId, true);
return fragment;
}
|
protected MarkupFragment getMarkupFragment(final String id)
{
return getAssociatedMarkupFragment(true).getChildFragment(id, true);
}
| protected MarkupFragment getMarkupFragment(final String id)
{
return getAssociatedMarkup(true).getChildFragment(id, true);
}
|
private void commonInit()
{
MarkupStream markupStream = getAssociatedMarkupStream(false);
if (markupStream == null)
{
throw new MarkupNotFoundException(
"Each Page must have associated markup. Unable to find the markup file for Page: "
+ this.toString());
}
// The <head> container. It can ... | private void commonInit()
{
MarkupStream markupStream = new MarkupStream(getAssociatedMarkup(false));
if (markupStream == null)
{
throw new MarkupNotFoundException(
"Each Page must have associated markup. Unable to find the markup file for Page: "
+ this.toString());
}
// The <head> contai... |
private int internalParseAllSequentiallyWithMarkupCache()
{
log.debug("Sequentially parse all markups (with MarkupCache)");
long overallTime = System.currentTimeMillis();
this.duration = new double[this.files.size()];
int i = 0;
int failures = 0;
File markupFile = null;
MarkupCache cache = this.applic... | private int internalParseAllSequentiallyWithMarkupCache()
{
log.debug("Sequentially parse all markups (with MarkupCache)");
long overallTime = System.currentTimeMillis();
this.duration = new double[this.files.size()];
int i = 0;
int failures = 0;
File markupFile = null;
MarkupCache cache = this.applic... |
public static void configure(Object target, AttributeList attrs,
Project project) throws BuildException {
if (target instanceof TypeAdapter) {
target = ((TypeAdapter) target).getProxy();
}
IntrospectionHelper ih =
IntrospectionHelper.... | public static void configure(Object target, AttributeList attrs,
Project project) throws BuildException {
if (target instanceof TypeAdapter) {
target = ((TypeAdapter) target).getProxy();
}
IntrospectionHelper ih =
IntrospectionHelper.... |
public static RGB borderOutsideRGB = new RGB (171, 168, 165);
/* sizing, positioning */
int xClient, yClient;
boolean onBottom = false;
boolean single = false;
boolean simple = true;
int fixedTabHeight = SWT.DEFAULT;
int tabHeight;
int minChars = 10;
/* item management */
CTabItem items[] = new CTabItem[... | public static RGB borderOutsideRGB = new RGB (171, 168, 165);
/* sizing, positioning */
int xClient, yClient;
boolean onBottom = false;
boolean single = false;
boolean simple = true;
int fixedTabHeight = SWT.DEFAULT;
int tabHeight;
int minChars = 10;
/* item management */
CTabItem items[] = new CTabItem[... |
public void test_1() throws Exception
{
WicketTester tester = new WicketTester();
tester.startPage(Home.class);
tester.assertContains("Wicket Examples - encodings");
tester.assertContains("Hello world! Test: ���");
}
| public void test_1() throws Exception
{
WicketTester tester = new WicketTester();
tester.startPage(Home.class);
tester.assertContains("Wicket Examples - encodings");
tester.assertContains("Hello world! Test: ���");
}
|
protected Value getVariable(String id, boolean bind) {
// check for already constructed var
if (isSeenVariable(id))
return (Value) _seenVars.get(id);
// create and cache var
Class<?> type = getDeclaredVariableType(id);
// add this type to the set of classes in t... | protected Value getVariable(String id, boolean bind) {
// check for already constructed var
if (isSeenVariable(id))
return (Value) _seenVars.get(id);
// create and cache var
Class<?> type = getDeclaredVariableType(id);
// add this type to the set of classes in t... |
public void write(PrintWriter out, int tab) {
tab(out, tab);
out.print("@"+name);
writeList(out, BLANK, args, BRACKET_ARGS, false);
out.println();
}
String quote(String s) {
return QUOTE + s + QUOTE;
}
}
| public void write(PrintWriter out, int tab) {
tab(out, tab);
out.println("@"+name);
writeList(out, BLANK, args, BRACKET_ARGS, false);
out.println();
}
String quote(String s) {
return QUOTE + s + QUOTE;
}
}
|
private Component makeExtractorPanel() {
JPanel panel = new HorizontalPanel();
panel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("html_extractor_type"))); //$NON-NLS-1$
DefaultComboBoxModel m = new DefaultComboBoxModel();
for (String s : HtmlExtractor... | private Component makeExtractorPanel() {
JPanel panel = new HorizontalPanel();
panel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("html_extractor_type"))); //$NON-NLS-1$
DefaultComboBoxModel m = new DefaultComboBoxModel();
for (String s : HtmlExtractor... |
public IVEXDocument getDocument() {
IVEXElement root = this;
while (root.getParent() != null) {
root = root.getParent();
}
if (root instanceof RootElement) {
return ((IVEXRootElement) root).getDocument();
} else {
return null;
}
}
| public IVEXDocument getDocument() {
IVEXElement root = this;
while (root.getParent() != null) {
root = root.getParent();
}
if (root instanceof RootElement) {
return ((IVEXElement) root).getDocument();
} else {
return null;
}
}
|
public Text(Content content, int startOffset, int endOffset) {
this.setContent(content, startOffset, endOffset);
}
} | public Text(IContent content, int startOffset, int endOffset) {
this.setContent(content, startOffset, endOffset);
}
} |
import org.apache.wicket.request.Response;
/*
* 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 Licen... | import org.apache.wicket.request.Response;
/*
* 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 Licen... |
package org.apache.wicket.request.mapper.parameter;
/*
* 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 Apa... | package org.apache.wicket.request.mapper.parameter;
/*
* 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 Apa... |
import org.apache.wicket.request.mapper.parameter.PageParameters;
/*
* 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... | import org.apache.wicket.request.mapper.parameter.PageParameters;
/*
* 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... |
import org.apache.wicket.request.mapper.parameter.PageParameters;
/*
* 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... | import org.apache.wicket.request.mapper.parameter.PageParameters;
/*
* 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... |
import org.apache.wicket.request.mapper.parameter.PageParameters;
/*
* 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... | import org.apache.wicket.request.mapper.parameter.PageParameters;
/*
* 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... |
import org.apache.wicket.request.Response;
/*
* 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 Licen... | import org.apache.wicket.request.Response;
/*
* 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 Licen... |
private final Log log = LogFactory.getLog(getClass());
| public void setResourceManager(ResourceManager resourceManager) {
throw new UnsupportedOperationException("Context must be immutable, use the existing constructors");
}
} |
protected void init() {
// datatype validators
if (fValidation) {
try {
//REVISIT: datatypeRegistry + initialization of datatype
// why do we cast to ListDatatypeValidator?
fValID = fDatatypeValidatorFactory.getBuiltInDV(XML... | protected void init() {
// datatype validators
if (fValidation || fDynamicValidation) {
try {
//REVISIT: datatypeRegistry + initialization of datatype
// why do we cast to ListDatatypeValidator?
fValID = fDatatypeValidatorFa... |
private void initializeComponents(final Properties properties)
{
initialize(properties.getProperty("initializer"));
initialize(properties.getProperty(getName() + "-initializer"));
}
/**
* Instantiate initializer with the given class name
*
* @param className
* The name of the initializer cl... | private void initializeComponents(final Properties properties)
{
initialize(properties.getProperty("initializer"));
initialize(properties.getProperty(getName() + "-initializer"));
}
/**
* Instantiate initializer with the given class name
*
* @param className
* The name of the initializer cl... |
public synchronized void pauseTest(int milis)
{
Iterator iter = new HashSet(allThreads.keySet()).iterator();
while (iter.hasNext())
{
Thread t = (Thread) allThreads.get(iter.next());
if (t != null && t.isAlive())
{
try
{
t.sleep(m... | public synchronized void pauseTest(int milis)
{
Iterator iter = new HashSet(allThreads.keySet()).iterator();
while (iter.hasNext())
{
Thread t = (Thread) allThreads.get(iter.next());
if (t != null && t.isAlive())
{
try
{
Thread.sl... |
public String toString() {
return "(" + left.toString() + " && " + right.toString() + ")";
}
| public String toString() {
return left.toString() + " " + right.toString();
}
|
public String toString() {
return "(!" + negatedPattern.toString() + ")";
}
| public String toString() {
return "!" + negatedPattern.toString();
}
|
public IChat createChat(ID targetUser) throws ECFException {
// TODO Auto-generated method stub
return null;
}
} | public IChat createChat(ID targetUser, IIMMessageListener messageListener) throws ECFException {
// TODO Auto-generated method stub
return null;
}
} |
public String open () {
String directoryPath = null;
NSOpenPanel panel = NSOpenPanel.openPanel();
OS.objc_msgSend(panel.id, OS.sel_setShowsHiddenFiles_, true);
panel.setCanCreateDirectories(true);
panel.setAllowsMultipleSelection((style & SWT.MULTI) != 0);
panel.setTitle(NSString.stringWith(title != null ? tit... | public String open () {
String directoryPath = null;
NSOpenPanel panel = NSOpenPanel.openPanel();
OS.objc_msgSend(panel.id, OS.sel_setShowsHiddenFiles_, true);
panel.setCanCreateDirectories(true);
panel.setAllowsMultipleSelection((style & SWT.MULTI) != 0);
panel.setTitle(NSString.stringWith(title != null ? tit... |
public String open () {
String fullPath = null;
fileNames = new String [0];
int /*long*/ method = 0;
int /*long*/ methodImpl = 0;
Callback callback = null;
if ((style & SWT.SAVE) != 0) {
NSSavePanel savePanel = NSSavePanel.savePanel();
panel = savePanel;
if (!overwrite) {
callback = new Callback(this, "_... | public String open () {
String fullPath = null;
fileNames = new String [0];
int /*long*/ method = 0;
int /*long*/ methodImpl = 0;
Callback callback = null;
if ((style & SWT.SAVE) != 0) {
NSSavePanel savePanel = NSSavePanel.savePanel();
panel = savePanel;
if (!overwrite) {
callback = new Callback(this, "_... |
public Menu (MenuItem parentItem) {
this (checkNull (parentItem).parent);
}
static Control checkNull (Control control) {
if (control == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
return control;
}
static Menu checkNull (Menu menu) {
if (menu == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
return menu;
}
static Me... | public Menu (MenuItem parentItem) {
this (checkNull (parentItem).parent);
}
static Control checkNull (Control control) {
if (control == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
return control;
}
static Menu checkNull (Menu menu) {
if (menu == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
return menu;
}
static Me... |
public int open () {
NSAlert alert = (NSAlert) new NSAlert().alloc().init();
int alertType = OS.NSInformationalAlertStyle;
if ((style & SWT.ICON_ERROR) != 0) alertType = OS.NSCriticalAlertStyle;
if ((style & SWT.ICON_INFORMATION) != 0) alertType = OS.NSInformationalAlertStyle;
if ((style & SWT.ICON_QUESTION) != 0)... | public int open () {
NSAlert alert = (NSAlert) new NSAlert().alloc().init();
int alertType = OS.NSInformationalAlertStyle;
if ((style & SWT.ICON_ERROR) != 0) alertType = OS.NSCriticalAlertStyle;
if ((style & SWT.ICON_INFORMATION) != 0) alertType = OS.NSInformationalAlertStyle;
if ((style & SWT.ICON_QUESTION) != 0)... |
public static final String NS_IDOCSHELL_IID_STR =
"4b00222a-8d0a-46d7-a1fe-43bd89d19324";
| public static final String NS_IDOCSHELL_IID_STR =
"7d1cf6b9-daa3-476d-8f9f-9eb2a971a95c";
|
private final Component resolveAutomaticLink(final MarkupContainer container, final String id,
final ComponentTag tag)
{
final Page page = container.getPage();
// Make the id (page-)unique
final String autoId = id + Integer.toString(page.getAutoIndex());
// get the tag name, which is something like 'a' or... | private final Component resolveAutomaticLink(final MarkupContainer container, final String id,
final ComponentTag tag)
{
final Page page = container.getPage();
// Make the id (page-)unique
final String autoId = id + Integer.toString(page.getAutoIndex());
// get the tag name, which is something like 'a' or... |
public void setParameter(String name, Object value) throws DOMException {
boolean found = true;
// REVISIT: Recognizes DOM L3 default features only.
// Does not yet recognize Xerces features.
if(value instanceof Boolean){
boolean state = ((Boolean)value).booleanValue();
... | public void setParameter(String name, Object value) throws DOMException {
boolean found = true;
// REVISIT: Recognizes DOM L3 default features only.
// Does not yet recognize Xerces features.
if(value instanceof Boolean){
boolean state = ((Boolean)value).booleanValue();
... |
public void enableCaching(Duration duration, final WebResponse.CacheScope scope)
{
Args.notNull(duration, "duration");
Args.notNull(scope, "scope");
// do not exceed the maximum recommended value from RFC-2616
if (duration.compareTo(MAX_CACHE_DURATION) > 0)
{
duration = MAX_CACHE_DURATION;
}
// Get... | public void enableCaching(Duration duration, final WebResponse.CacheScope scope)
{
Args.notNull(duration, "duration");
Args.notNull(scope, "scope");
// do not exceed the maximum recommended value from RFC-2616
if (duration.compareTo(MAX_CACHE_DURATION) > 0)
{
duration = MAX_CACHE_DURATION;
}
// Get... |
protected CharSequence encode(RequestCycle requestCycle,
IBookmarkablePageRequestTarget requestTarget)
{
// Begin encoding URL
final AppendingStringBuffer url = new AppendingStringBuffer(64);
// Get page Class
final Class<? extends Page> pageClass = requestTarget.getPageClass();
final Application applica... | protected CharSequence encode(RequestCycle requestCycle,
IBookmarkablePageRequestTarget requestTarget)
{
// Begin encoding URL
final AppendingStringBuffer url = new AppendingStringBuffer(64);
// Get page Class
final Class<? extends Page> pageClass = requestTarget.getPageClass();
final Application applica... |
protected CharSequence encode(RequestCycle requestCycle,
IBookmarkablePageRequestTarget requestTarget)
{
if (requestTarget instanceof BookmarkableListenerInterfaceRequestTarget &&
requestTarget.getPageParameters().containsKey(
WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME))
{
BookmarkableListenerI... | protected CharSequence encode(RequestCycle requestCycle,
IBookmarkablePageRequestTarget requestTarget)
{
if (requestTarget instanceof BookmarkableListenerInterfaceRequestTarget &&
requestTarget.getPageParameters().containsKey(
WebRequestCodingStrategy.INTERFACE_PARAMETER_NAME))
{
BookmarkableListenerI... |
public void testTimeZoneEquals() {
CalendarFields c1 = new CalendarFields();
CalendarFields c2 = new CalendarFields();
assertTimeZonesEquals(c1, c2);
OpenJPAEntityManager pm;
pm = getPM();
startTx(pm);
pm.persist(c2);
int id2 = c2.getId();
as... | public void testTimeZoneEquals() {
CalendarFields c1 = new CalendarFields();
CalendarFields c2 = new CalendarFields();
assertTimeZonesEquals(c1, c2);
OpenJPAEntityManager pm;
pm = getPM();
startTx(pm);
pm.persist(c2);
int id2 = c2.getId();
as... |
private void clearDependentOfDetachedTest(boolean mapped) {
deleteAll(DependentFieldsPC.class);
DependentFieldsPC owner = new DependentFieldsPC();
for (int i = 0; i < 2; i++) {
DependentFieldsPC child = new DependentFieldsPC();
if (mapped) {
owner.get... | private void clearDependentOfDetachedTest(boolean mapped) {
deleteAll(DependentFieldsPC.class);
DependentFieldsPC owner = new DependentFieldsPC();
for (int i = 0; i < 2; i++) {
DependentFieldsPC child = new DependentFieldsPC();
if (mapped) {
owner.get... |
public void testDetachedRelationTraversalWithCompanyAsRoot() {
OpenJPAEntityManager pm = getPM();
FetchPlan plan = pm.getFetchPlan();
pm.getFetchPlan().setMaxFetchDepth(2);
plan.addFetchGroup("company.departments");
plan.addFetchGroup("company.address");
plan.addFetch... | public void testDetachedRelationTraversalWithCompanyAsRoot() {
OpenJPAEntityManager pm = getPM();
FetchPlan plan = pm.getFetchPlan();
pm.getFetchPlan().setMaxFetchDepth(2);
plan.addFetchGroup("company.departments");
plan.addFetchGroup("company.address");
plan.addFetch... |
private void launchCommonSequence(TestThread thisThread ) {
int threadToRun = thisThread.threadToRun;
Object[][][] actions = thisThread.actions;
Map<Integer,LockEmployee> employees = thisThread.employees;
assertNotNull("Test sequence table must be defined", actions);
assert ... | private void launchCommonSequence(TestThread thisThread ) {
int threadToRun = thisThread.threadToRun;
Object[][][] actions = thisThread.actions;
Map<Integer,LockEmployee> employees = thisThread.employees;
assertNotNull("Test sequence table must be defined", actions);
assert ... |
public void testDetachCopy() {
OpenJPAEntityManager em = emf.createEntityManager();
LRSEntity lrs = em.find(LRSEntity.class, id);
assertLRS(lrs, "lrs");
lrs = em.detach(lrs);
assertEquals("lrs", lrs.getName());
assertNull(lrs.getLRSList());
em.close();
... | public void testDetachCopy() {
OpenJPAEntityManager em = emf.createEntityManager();
LRSEntity lrs = em.find(LRSEntity.class, id);
assertLRS(lrs, "lrs");
lrs = em.detachCopy(lrs);
assertEquals("lrs", lrs.getName());
assertNull(lrs.getLRSList());
em.close();
... |
private void serializeCascades(ValueMetaData vmd, AnnotationBuilder ab) {
EnumSet<CascadeType> cascades = EnumSet.noneOf(CascadeType.class);
if (vmd.getCascadePersist() == ValueMetaData.CASCADE_IMMEDIATE) {
cascades.add(CascadeType.PERSIST);
}
if (vmd.getCascadeAttach() =... | private void serializeCascades(ValueMetaData vmd, AnnotationBuilder ab) {
EnumSet<CascadeType> cascades = EnumSet.noneOf(CascadeType.class);
if (vmd.getCascadePersist() == ValueMetaData.CASCADE_IMMEDIATE) {
cascades.add(CascadeType.PERSIST);
}
if (vmd.getCascadeAttach() =... |
public ScrollBar getVerticalBar () {
checkWidget ();
return verticalBar;
}
int /*long*/ gtk_scroll_event (int /*long*/ widget, int /*long*/ eventPtr) {
int /*long*/ result = super.gtk_scroll_event (widget, eventPtr);
/*
* Feature in GTK. Scrolled windows do not scroll if the scrollbars
* are hidden. This is ... | public ScrollBar getVerticalBar () {
checkWidget ();
return verticalBar;
}
int /*long*/ gtk_scroll_event (int /*long*/ widget, int /*long*/ eventPtr) {
int /*long*/ result = super.gtk_scroll_event (widget, eventPtr);
/*
* Feature in GTK. Scrolled windows do not scroll if the scrollbars
* are hidden. This is ... |
public static void main( String[] argv) {
try {
boolean namespaces = true;
System.out.println("Running dom.dom3.Test...");
System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom.DOMImplementationSourceImpl");
DOMImplementati... | public static void main( String[] argv) {
try {
boolean namespaces = true;
System.out.println("Running dom.dom3.Test...");
System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom.DOMImplementationSourceImpl org.apache.xerces.dom.DOMXSImplementationSou... |
public final String getPath()
{
final StringBuffer buffer = new StringBuffer();
buffer.append("resources/");
buffer.append(scope.getName());
buffer.append('_');
buffer.append(Application.localizedPath(name, locale, style));
return buffer.toString();
}
| public final String getPath()
{
final StringBuffer buffer = new StringBuffer();
buffer.append("resources/");
buffer.append(scope.getName());
buffer.append('/');
buffer.append(Application.localizedPath(name, locale, style));
return buffer.toString();
}
|
public EditBookForm(MarkupContainer parent, final String id, final Book book)
{
super(parent, id, new CompoundPropertyModel<Book>(book));
// Create a required text field with a max length of 30 characters
// that edits the book's title
final FormComponentFeedbackBorder titleFeedback = new FormComponent... | public EditBookForm(MarkupContainer parent, final String id, final Book book)
{
super(parent, id, new CompoundPropertyModel<Book>(book));
// Create a required text field with a max length of 30 characters
// that edits the book's title
final FormComponentFeedbackBorder titleFeedback = new FormComponent... |
public boolean isInputValid() {
return choices.contains(getInput());
}
| public boolean isInputValid() {
return choices.contains(getInput()) || ("".equals(getInput()) && getDefaultValue() != null);
}
|
public EAN13BlackBox1TestCase() {
super("test/data/blackbox/ean13-1", new MultiFormatReader(), BarcodeFormat.EAN_13);
addTest(30, 32, 0.0f);
addTest(27, 32, 180.0f);
}
| public EAN13BlackBox1TestCase() {
super("test/data/blackbox/ean13-1", new MultiFormatReader(), BarcodeFormat.EAN_13);
addTest(29, 32, 0.0f);
addTest(27, 32, 180.0f);
}
|
public void assertConfig(boolean condition, String errormessage) {
if (condition) {
errors.add(errormessage);
}
}
| public void assertConfig(boolean condition, String errormessage) {
if (!condition) {
errors.add(errormessage);
}
}
|
public IModel<T> getModel(Object value);
} | public IModel<T> getModel(T value);
} |
public FontMetrics getLineMetrics (int lineIndex) {
checkLayout();
computeRuns(null);
if (!(0 <= lineIndex && lineIndex < runs.length)) SWT.error(SWT.ERROR_INVALID_RANGE);
GC gc = new GC(device);
gc.setFont(this.font != null ? this.font : device.getSystemFont());
FontMetrics metrics = gc.getFontMetrics();
int as... | public FontMetrics getLineMetrics (int lineIndex) {
checkLayout();
computeRuns(null);
if (!(0 <= lineIndex && lineIndex < runs.length)) SWT.error(SWT.ERROR_INVALID_RANGE);
GC gc = new GC(device);
gc.setFont(this.font != null ? this.font : device.getSystemFont());
FontMetrics metrics = gc.getFontMetrics();
int as... |
public void redraw (int x, int y, int width, int height, boolean all) {
checkWidget ();
NSRect rect = new NSRect();
rect.x = x;
rect.y = y;
rect.width = width;
rect.height = height;
view.setNeedsDisplayInRect(rect);
}
int /*long*/ regionToRects(int /*long*/ message, int /*long*/ rgn, int /*long*/ r, int /*long*... | public void redraw (int x, int y, int width, int height, boolean all) {
checkWidget ();
NSRect rect = new NSRect();
rect.x = x;
rect.y = y;
rect.width = width;
rect.height = height;
view.setNeedsDisplayInRect(rect);
}
int /*long*/ regionToRects(int /*long*/ message, int /*long*/ rgn, int /*long*/ r, int /*long*... |
public static void main (String [] args) {
Display display = new Display ();
System.out.println ("BOUNDS=" + display.getBounds () + " CLIENT=" + display.getClientArea ());
display.dispose ();
}
| public static void main (String [] args) {
Display display = new Display ();
System.out.println ("Display Bounds=" + display.getBounds () + " Display ClientArea=" + display.getClientArea ());
display.dispose ();
}
|
public DOMWriter createDOMWriter() {
return new DOMWriterImpl(true);
}
| public DOMWriter createDOMWriter() {
return new DOMWriterImpl();
}
|
public static final boolean validatePage(String document, final Class<?> clazz,
final String file, boolean failWithAssert) throws IOException
{
Args.notNull(document, "document");
String filename = clazz.getPackage().getName();
filename = filename.replace('.', '/');
filename += "/" + file;
InputStream i... | public static final boolean validatePage(String document, final Class<?> clazz,
final String file, boolean failWithAssert) throws IOException
{
Args.notNull(document, "document");
String filename = clazz.getPackage().getName();
filename = filename.replace('.', '/');
filename += "/" + file;
InputStream i... |
public void testPagedTable() throws Exception
{
tester.startPage(PagedTablePage.class);
PagedTablePage page = (PagedTablePage)tester.getLastRenderedPage();
String document = tester.getLastResponseAsString();
assertTrue(validatePage1(document));
Link<?> link = (Link<?>)page.get("navigation:1:pageLink");
t... | public void testPagedTable() throws Exception
{
tester.startPage(PagedTablePage.class);
PagedTablePage page = (PagedTablePage)tester.getLastRenderedPage();
String document = tester.getLastResponseAsString();
assertTrue(document, validatePage1(document));
Link<?> link = (Link<?>)page.get("navigation:1:pageL... |
private static void addElement(StringBuilder sb, String prefix, String value) {
if (value != null) {
sb.append(", ");
sb.append(prefix);
sb.append(value);
}
}
static {
StringBuilder sb = new StringBuilder();
sb.append("CN=_ DO NOT INSTALL ... | private static void addElement(StringBuilder sb, String prefix, String value) {
if (value != null) {
sb.append(", ");
sb.append(prefix);
sb.append(value);
}
}
static {
StringBuilder sb = new StringBuilder();
sb.append("CN=_ DO NOT INSTALL ... |
public static final String VALID_ATTRIBUTE_CHARS =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012345679-_";
| public static final String VALID_ATTRIBUTE_CHARS =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_";
|
public void test_ConstructorLorg_eclipse_swt_graphics_DeviceLorg_eclipse_swt_graphics_ImageDataLorg_eclipse_swt_graphics_ImageData() {
final int COUNT = 4000; // 5000 causes an error
Image[] images = new Image[COUNT];
String name = getPath(imageFilenames[0] + "." + imageFormats[0]);
FileInputStream inStream = nul... | public void test_ConstructorLorg_eclipse_swt_graphics_DeviceLorg_eclipse_swt_graphics_ImageDataLorg_eclipse_swt_graphics_ImageData() {
final int COUNT = 4000; // 5000 causes an error
Image[] images = new Image[COUNT];
String name = getPath(imageFilenames[0] + "." + imageFormats[0]);
FileInputStream inStream = nul... |
public static void makeJar1a() throws IOException {
List args = new ArrayList();
args.add("-outjar");
args.add("../weaver/testdata/megatraceNoweave.jar");
args.add("-noweave");
args.add("-classpath");
args.add(AjcTests.aspectjrtClasspath());
args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/trace/M... | public static void makeJar1a() throws IOException {
List args = new ArrayList();
args.add("-outjar");
args.add("../weaver/testdata/megatraceNoweave.jar");
args.add("-XterminateAfterCompilation");
args.add("-classpath");
args.add(AjcTests.aspectjrtClasspath());
args.add(AjdtAjcTests.TESTDATA_PA... |
public void testDefaultFileComplete() {
AjcTask task = getTask("default.lst");
task.setDebugLevel("none");
task.setDeprecation(true);
task.setFailonerror(false);
task.setNoExit(true); // ok to override Ant?
task.setNoImportError(true);
task.setNowarn(true);
task.setXNoweave(true);
task.setPreserveAll... | public void testDefaultFileComplete() {
AjcTask task = getTask("default.lst");
task.setDebugLevel("none");
task.setDeprecation(true);
task.setFailonerror(false);
task.setNoExit(true); // ok to override Ant?
task.setNoImportError(true);
task.setNowarn(true);
task.setXTerminateAfterCompilation(true);
t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.