buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private void bindSession(ServletRequest request, WebApplication application) { // find wicket session and bind it to thread HttpSession httpSession = ((HttpServletRequest)request).getSession(false); Session session = getSession(httpSession, application); if (session == null) { if (logger.isDebugEnabled(...
private void bindSession(ServletRequest request, WebApplication application) { // find wicket session and bind it to thread HttpSession httpSession = ((HttpServletRequest)request).getSession(false); Session session = getSession(httpSession, application); if (session == null) { if (logger.isDebugEnabled(...
protected static void logAndThrow(String s, Throwable t) throws IDCreateException { IDCreateException e = null; if (t != null) { e = new IDCreateException(s + ": " + t.getClass().getName() + ": " //$NON-NLS-1$ //$NON-NLS-2$ + t.getMessage(), t); } else { e = new IDCreateException(s); } Trace.th...
protected static void logAndThrow(String s, Throwable t) throws IDCreateException { IDCreateException e = null; if (t != null) { e = new IDCreateException(s + ": " + t.getClass().getName() + ": " //$NON-NLS-1$ //$NON-NLS-2$ + t.getMessage(), t); } else { e = new IDCreateException(s); } Trace.th...
public static final int sizof = 10; }
public static final int sizeof = 10; }
public static final int sizof = 8; }
public static final int sizeof = 8; }
private void drawSample(int x, SampleResult oneSample, Graphics g) { log.debug("Start : drawSample1"); // Used to keep track of accumulated load times of components. int lastLevel = 0; // Number of components int compCount = 0; SampleResult[] resultList = oneSa...
private void drawSample(int x, SampleResult oneSample, Graphics g) { log.debug("Start : drawSample1"); // Used to keep track of accumulated load times of components. int lastLevel = 0; // Number of components int compCount = 0; SampleResult[] resultList = oneSa...
public void doAction(ActionEvent e) { String name = ((Component)e.getSource()).getName(); try { TestElement controller = (TestElement)GuiPackage.getInstance().createTestElement(name); addParentToTree(controller); } catch(Exception err) { ...
public void doAction(ActionEvent e) { String name = ((Component)e.getSource()).getName(); try { TestElement controller = GuiPackage.getInstance().createTestElement(name); addParentToTree(controller); } catch(Exception err) { log...
public JMeterTreeNode addComponent( TestElement component, JMeterTreeNode node) throws IllegalUserActionException { if (node.getUserObject() instanceof AbstractConfigGui) { throw new IllegalUserActionException( "This node cannot hold sub-el...
public JMeterTreeNode addComponent( TestElement component, JMeterTreeNode node) throws IllegalUserActionException { if (node.getUserObject() instanceof AbstractConfigGui) { throw new IllegalUserActionException( "This node cannot hold sub-el...
private String format(SamplingStatCalculator s, String type) { StringBuffer tmp = new StringBuffer(20); // for intermediate use StringBuffer sb = new StringBuffer(100); // output line buffer sb.append(myName); sb.append(" "); sb.append(type); sb.append(" "); sb.app...
private String format(SamplingStatCalculator s, String type) { StringBuffer tmp = new StringBuffer(20); // for intermediate use StringBuffer sb = new StringBuffer(100); // output line buffer sb.append(myName); sb.append(" "); sb.append(type); sb.append(" "); sb.app...
public void configure(TestElement el) { tableModel.manager.clear(); super.configure(el); tableModel.manager.addTestElement((HeaderManager) el); boolean hasRows = tableModel.getRowCount() > 0; deleteButton.setEnabled(hasRows); saveButton.setEnabled(hasRows); ...
public void configure(TestElement el) { tableModel.manager.clear(); super.configure(el); tableModel.manager.addTestElement(el); boolean hasRows = tableModel.getRowCount() > 0; deleteButton.setEnabled(hasRows); saveButton.setEnabled(hasRows); }
protected void onComponentRendered() { Response response=getComponent().getResponse(); final String id = getComponent().getMarkupId(); response.write(JavascriptUtils.SCRIPT_OPEN_TAG); response.write("new WicketAutoComplete('"+id+"','"+getCallbackUrl()+"');"); response.write(JavascriptUtils.SCRIPT_CLOSE_TAG)...
protected void onComponentRendered() { Response response=getComponent().getResponse(); final String id = getComponent().getMarkupId(); response.write(JavascriptUtils.SCRIPT_OPEN_TAG); response.write("new Wicket.Ajax.AutoComplete('"+id+"','"+getCallbackUrl()+"');"); response.write(JavascriptUtils.SCRIPT_CLOS...
public boolean eval() throws BuildException { if(host==null && host.length()==0) { throw new BuildException(ERROR_NO_HOSTNAME); } if(timeout<0) { throw new BuildException(ERROR_BAD_TIMEOUT); } try { InetAddress address=InetAddress.getByName...
public boolean eval() throws BuildException { if(host==null || host.length()==0) { throw new BuildException(ERROR_NO_HOSTNAME); } if(timeout<0) { throw new BuildException(ERROR_BAD_TIMEOUT); } try { InetAddress address=InetAddress.getByName...
private String getAttributeTypeName(XMLAttributeDecl attrDecl) { switch (attrDecl.simpleType.type) { case XMLSimpleType.TYPE_ENTITY: { return attrDecl.simpleType.list ? fENTITIESSymbol : fENTITYSymbol; } case XMLSimpleType.TYPE_ENUMERATION: { Stri...
private String getAttributeTypeName(XMLAttributeDecl attrDecl) { switch (attrDecl.simpleType.type) { case XMLSimpleType.TYPE_ENTITY: { return attrDecl.simpleType.list ? fENTITIESSymbol : fENTITYSymbol; } case XMLSimpleType.TYPE_ENUMERATION: { Stri...
public TextTemplate interpolate(final Map<String, Object> variables) { return this; } }
public TextTemplate interpolate(final Map<String, ?> variables) { return this; } }
public final TextTemplate interpolate(Map<String, Object> variables) { if (variables != null) { String result = new MapVariableInterpolator(buffer.toString(), variables).toString(); buffer.delete(0, buffer.length()); buffer.append(result); } return this; } }
public final TextTemplate interpolate(Map<String, ?> variables) { if (variables != null) { String result = new MapVariableInterpolator(buffer.toString(), variables).toString(); buffer.delete(0, buffer.length()); buffer.append(result); } return this; } }
public TextTemplateLink(final String id, final TextTemplateSharedResourceFactory factory, final Map<String, Object> variables) { super(id, factory.resourceReference(variables)); }
public TextTemplateLink(final String id, final TextTemplateSharedResourceFactory factory, final Map<String, ?> variables) { super(id, factory.resourceReference(variables)); }
public void beforeWriteAndClose(FileHandle impl) { String fn = impl.getTargetFile().getAbsolutePath(); boolean isXML = isXmlFile(fn); URI u = URI.createFileURI(fn); if (log.isInfoEnabled()) { if (isXML) log.info(Msg.create("Beautifying ").uri(u)); else log.info(Msg.create("Ignoring ").uri(u).txt...
public void beforeWriteAndClose(FileHandle impl) { String fn = impl.getTargetFile().getAbsolutePath(); boolean isXML = isXmlFile(fn); URI u = URI.createFileURI(fn); if (log.isInfoEnabled()) { if (isXML) log.info(Msg.create("Beautifying ").uri(u)); else log.info(Msg.create("Ignoring ").uri(u).txt...
private static String refToStr(EObject obj, EReference ref) { StringBuffer buf = new StringBuffer(); Object o = obj.eGet(ref); if (o instanceof EObject) { EObject eo = (EObject) o; if (eo instanceof ENamedElement) buf.append("'" + ((ENamedElement) eo).getName() + "' "); buf.append("ref:" + EcoreUti...
private static String refToStr(EObject obj, EReference ref) { StringBuffer buf = new StringBuffer(); Object o = obj.eGet(ref); if (o instanceof EObject) { EObject eo = (EObject) o; if (eo instanceof ENamedElement) buf.append("'" + ((ENamedElement) eo).getName() + "' "); buf.append("ref:" + EcoreUti...
private void assertNoReferencesToPackage(Set<EPackage> allowedPackages, EObject obj) { for (EReference ref : obj.eClass().getEAllReferences()) { Object o = obj.eGet(ref); if (obj instanceof EPackage && !allowedPackages.contains((EPackage) obj)) fail2(Msg.create("Supplied object is a forbidden packa...
private void assertNoReferencesToPackage(Set<EPackage> allowedPackages, EObject obj) { for (EReference ref : obj.eClass().getEAllReferences()) { Object o = obj.eGet(ref); if (obj instanceof EPackage && !allowedPackages.contains(obj)) fail2(Msg.create("Supplied object is a forbidden package:") ...
public void deselectAll () { checkWidget (); NSTableView widget = (NSTableView)view; ignoreSelect = true; widget.deselectAll(null); ignoreSelect = false; } void destroyItem (TableColumn column) { int index = 0; while (index < columnCount) { if (columns [index] == column) break; index++; } for (int i=0; i<...
public void deselectAll () { checkWidget (); NSTableView widget = (NSTableView)view; ignoreSelect = true; widget.deselectAll(null); ignoreSelect = false; } void destroyItem (TableColumn column) { int index = 0; while (index < columnCount) { if (columns [index] == column) break; index++; } for (int i=0; i<...
public void deselect (TreeItem item) { checkWidget (); if (item == null) error (SWT.ERROR_NULL_ARGUMENT); if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); NSOutlineView widget = (NSOutlineView)view; int /*long*/ row = widget.rowForItem(item.handle); ignoreSelect = true; widget.deselectRow (row); igno...
public void deselect (TreeItem item) { checkWidget (); if (item == null) error (SWT.ERROR_NULL_ARGUMENT); if (item.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); NSOutlineView widget = (NSOutlineView)view; int /*long*/ row = widget.rowForItem(item.handle); ignoreSelect = true; widget.deselectRow (row); igno...
public IMarkupFragment getMarkup(final Component child) { // Border require an associated markup resource file IMarkupFragment markup = getAssociatedMarkup(); if (markup == null) { throw new MarkupException("Unable to find associated markup file for Border: " + this.toString()); } // Find <wicket:...
public IMarkupFragment getMarkup(final Component child) { // Border require an associated markup resource file IMarkupFragment markup = getAssociatedMarkup(); if (markup == null) { throw new MarkupException("Unable to find associated markup file for Border: " + this.toString()); } // Find <wicket:...
private ImportRegistration doImportService( EndpointDescription endpointDescription, IRemoteServiceContainer rsContainer) throws ECFException { Collection<String> interfaces = endpointDescription.getInterfaces(); ID endpointID = IDUtil.createContainerID(endpointDescription); ID targetID = endpointDescripti...
private ImportRegistration doImportService( EndpointDescription endpointDescription, IRemoteServiceContainer rsContainer) throws ECFException { Collection<String> interfaces = endpointDescription.getInterfaces(); ID endpointID = IDUtil.createContainerID(endpointDescription); ID targetID = endpointDescripti...
protected void initialize() { try { this.delegateID = IDFactory.getDefault().createStringID( SharedObjectDatashareContainerAdapter.class.getName()); this.delegate = new SharedObjectDatashareContainerAdapter(); this.container.getSharedObjectManager().addSharedObject(delegateID, delegate, null); }...
protected void initialize() { try { this.delegateID = IDFactory.getDefault().createStringID( SharedObjectDatashareContainerAdapter.class.getName()); this.delegate = new SharedObjectDatashareContainerAdapter(); this.container.getSharedObjectManager().addSharedObject(delegateID, delegate, null); }...
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...
public void validate(Form form) { // we have a choice to validate the type converted values or the raw // input values, we validate the raw input final FormComponent formComponent1 = components[0]; final FormComponent formComponent2 = components[1]; if (!Objects.equal(formComponent1.getInput(), formCompone...
public void validate(Form form) { // we have a choice to validate the type converted values or the raw // input values, we validate the raw input final FormComponent formComponent1 = components[0]; final FormComponent<?> formComponent2 = components[1]; if (!Objects.equal(formComponent1.getInput(), formComp...
public RedirectPage(final CharSequence url, final int waitBeforeRedirectInSeconds) { final WebMarkupContainer redirect = new WebMarkupContainer(this, "redirect"); final String content = waitBeforeRedirectInSeconds + ";URL=" + url; redirect.add(new AttributeModifier("content", new Model(content))); }
public RedirectPage(final CharSequence url, final int waitBeforeRedirectInSeconds) { final WebMarkupContainer redirect = new WebMarkupContainer(this, "redirect"); final String content = waitBeforeRedirectInSeconds + ";URL=" + url; redirect.add(new AttributeModifier("content", new Model<String>(content))); }
public XsltOutputTransformerContainer(MarkupContainer parent, final String id, final IModel model, final String xslFilePath) { super(parent, id); this.xslFile = xslFilePath; // The containers tag will be transformed as well. Thus we make sure // that // the xml provided to the xsl processor is well for...
public XsltOutputTransformerContainer(MarkupContainer parent, final String id, final IModel model, final String xslFilePath) { super(parent, id); this.xslFile = xslFilePath; // The containers tag will be transformed as well. Thus we make sure // that // the xml provided to the xsl processor is well for...
public MarkupInheritanceBaseBase_11() { WebMarkupContainer css = new WebMarkupContainer(this, "css"); css.add(new AttributeModifier("src", true, new Model("myStyle.css"))); new Label(this, "label1", "base label 1"); new Label(this, "label2", "base label 2"); }
public MarkupInheritanceBaseBase_11() { WebMarkupContainer css = new WebMarkupContainer(this, "css"); css.add(new AttributeModifier("src", true, new Model<String>("myStyle.css"))); new Label(this, "label1", "base label 1"); new Label(this, "label2", "base label 2"); }
public MarkupInheritanceBase_10() { WebMarkupContainer css = new WebMarkupContainer(this, "css"); css.add(new AttributeModifier("src", true, new Model("myStyle.css"))); new Label(this, "label1", "base label 1"); new Label(this, "label2", "base label 2"); }
public MarkupInheritanceBase_10() { WebMarkupContainer css = new WebMarkupContainer(this, "css"); css.add(new AttributeModifier("src", true, new Model<String>("myStyle.css"))); new Label(this, "label1", "base label 1"); new Label(this, "label2", "base label 2"); }
public SimplePage() { new Label(this, "myLabel", "Test Label"); WebMarkupContainer container = new WebMarkupContainer(this, "test"); container.setRenderBodyOnly(true); new Label(container, "myLabel2", "Test Label2"); Panel panel = new SimplePanel(this, "myPanel"); panel.setRenderBodyOnly(true); Bord...
public SimplePage() { new Label(this, "myLabel", "Test Label"); WebMarkupContainer container = new WebMarkupContainer(this, "test"); container.setRenderBodyOnly(true); new Label(container, "myLabel2", "Test Label2"); Panel panel = new SimplePanel(this, "myPanel"); panel.setRenderBodyOnly(true); Bord...
public BoxBorderTestPage_3() { Border formBorder = new FormBorder(this, "border"); new TextField(formBorder, "name", new PropertyModel(properties, "name")); }
public BoxBorderTestPage_3() { Border formBorder = new FormBorder(this, "border"); new TextField<String>(formBorder, "name", new PropertyModel<String>(properties, "name")); }
protected void onSubmit() { login(get("username").getModelObjectAsString().toString()); } }; textField = new TextField(form, "username", new Model()); }
protected void onSubmit() { login(get("username").getModelObjectAsString().toString()); } }; textField = new TextField<String>(form, "username", new Model<String>()); }
public EmailPage() { Form form = new Form(this, "form"); form.setModel(new CompoundPropertyModel(this)); TextField email = new TextField(form, "email"); email.add(EmailAddressPatternValidator.getInstance()); }
public EmailPage() { Form<?> form = new Form(this, "form"); form.setModel(new CompoundPropertyModel(this)); TextField email = new TextField(form, "email"); email.add(EmailAddressPatternValidator.getInstance()); }
public void setManifest(File manifestFile) { manifest = manifestFile; if (!manifest.exists()) throw new BuildException("Manifest file: " + manifest + " does not exist."); // Create a PrefixedFileSet for this file, and pass it up. PrefixedFileSet fs = new PrefixedFileSet(...
public void setManifest(File manifestFile) { manifest = manifestFile; if (!manifest.exists()) throw new BuildException("Manifest file: " + manifest + " does not exist."); // Create a PrefixedFileSet for this file, and pass it up. PrefixedFileSet fs = new PrefixedFileSet(...
public void renderHead(IHeaderResponse response) { super.renderHead(response); AppendingStringBuffer asb = new AppendingStringBuffer(); asb.append("function attachChoiceHandlers(markupId, callbackScript) {\n"); asb.append(" var inputNodes = wicketGet(markupId).getElementsByTagName('input');\n"); asb.append...
public void renderHead(IHeaderResponse response) { super.renderHead(response); AppendingStringBuffer asb = new AppendingStringBuffer(); asb.append("function attachChoiceHandlers(markupId, callbackScript) {\n"); asb.append(" var inputNodes = wicketGet(markupId).getElementsByTagName('input');\n"); asb.append...
public boolean validate() { if (!(m_world instanceof BcelWorld)) { reportError("Internal error: world must be of type BcelWorld"); return false; } m_parent = m_world.resolve(m_concreteAspect.extend, true); // handle inner classes if (m_parent.equals(R...
public boolean validate() { if (!(m_world instanceof BcelWorld)) { reportError("Internal error: world must be of type BcelWorld"); return false; } m_parent = m_world.resolve(m_concreteAspect.extend, true); // handle inner classes if (m_parent.equals(R...
protected IModel initModel() { return null; }
protected IModel initModel() { return new PropertyModel(getPage().getModel(), getName()); }
public boolean hasMoreCombination() { return cursor < combos.length-1; }
public boolean hasMoreCombination() { return cursor < combos.length; }
private NavigatorLabel(final String id, final PageableComponent table) { super(id); setModel(new StringResourceModel("NavigatorLabel", this, new Model(new LabelModelObject(table)))); }
private NavigatorLabel(final String id, final PageableComponent table) { super(id); setModel(new StringResourceModel("NavigatorLabel", this, new Model(new LabelModelObject(table)), "Showing ${from} to ${to} of ${of}")); }
protected void expectOutput(String target, String output) { executeTarget(target); String realOutput = getOutput(); assertEquals(output, realOutput); }
protected void expectOutput(String target, String output) { executeTarget(target); String realOutput = getOutput(); assertEquals(output, realOutput.trim()); }
protected Properties createProperties(Dictionary props) { final Properties resultProps = new Properties(props); resultProps.setProperty(RemoteServiceRegistryImpl.REMOTEOBJECTCLASS, clazzes); resultProps.setProperty(RemoteServiceRegistryImpl.REMOTESERVICE_ID, new Long(getID().getContainerRelativeID())); fina...
protected Properties createProperties(Dictionary props) { final Properties resultProps = new Properties(props); resultProps.setProperty(RemoteServiceRegistryImpl.REMOTEOBJECTCLASS, clazzes); resultProps.setProperty(RemoteServiceRegistryImpl.REMOTESERVICE_ID, new Long(getID().getContainerRelativeID())); fina...
protected void init() { super.init(); mountBookmarkablePage("/statefull", StatefulPage.class); mountBookmarkablePage("/query", StatelessPage1.class); mountBookmarkablePage("/mixed", StatelessPage2.class); mountBookmarkablePage("/indexed", StatelessPage3.class); // mount("/public", PackageName.forClass(St...
protected void init() { super.init(); mountBookmarkablePage("/statefull", StatefulPage.class); mountBookmarkablePage("/query", StatelessPage1.class); mountBookmarkablePage("/mixed", StatelessPage2.class); mountBookmarkablePage("/state-in-url", StatelessPage3.class); // mount("/public", PackageName.forCla...
public TypeDeployer createDeployer( final File file ) throws DeploymentException { try { final ClassLoader classLoader = m_classLoaderManager.createClassLoader( file ); return createDeployment( classLoader, file.toURL() ); } catch( Exception e ) ...
public TypeDeployer createDeployer( final File file ) throws DeploymentException { try { final ClassLoader classLoader = m_classLoaderManager.createClassLoader( file ); return createDeployment( classLoader, file.toURL() ); } catch( final Exception ...
protected ResultObjectProvider executeQuery(Executor ex, ClassMetaData base, ClassMetaData[] metas, boolean subclasses, ExpressionFactory[] facts, QueryExpressions[] exps, Object[] params, boolean lrs, long startIdx, long endIdx) { if (metas.length > 1 && exps[0].aggregate) ...
protected ResultObjectProvider executeQuery(Executor ex, ClassMetaData base, ClassMetaData[] metas, boolean subclasses, ExpressionFactory[] facts, QueryExpressions[] exps, Object[] params, boolean lrs, long startIdx, long endIdx) { if (metas.length > 1 && exps[0].isAggregate()) ...
public List project(QueryExpressions exps, List matches, StoreContext ctx, Object[] params) { if (exps.projections.length == 0) return matches; // if an ungrouped aggregate, evaluate the whole matches list if (exps.grouping.length == 0 && exps.aggregate) { Ob...
public List project(QueryExpressions exps, List matches, StoreContext ctx, Object[] params) { if (exps.projections.length == 0) return matches; // if an ungrouped aggregate, evaluate the whole matches list if (exps.grouping.length == 0 && exps.isAggregate()) { ...
public String[] getParameters(final String key) { return (String[])parameters.keySet().toArray(); }
public String[] getParameters(final String key) { return (String[])this.parameters.get(key); }
public IRequestTarget decode(RequestParameters requestParameters) { log.debug("path=" + requestParameters.getPath()); String remainder = requestParameters.getPath().substring(getMountPath().length()); log.debug("remainder=" + remainder); final String parametersFragment; int ix = remainder.indexOf('/', 1); ...
public IRequestTarget decode(RequestParameters requestParameters) { log.debug("path=" + requestParameters.getPath()); String remainder = requestParameters.getPath().substring(getMountPath().length()); log.debug("remainder=" + remainder); final String parametersFragment; int ix = remainder.indexOf('/', 1); ...
public final Page getPage(final String pageMapName, final String path, final int versionNumber) { if (log.isDebugEnabled()) { log.debug("Getting page [path = " + path + ", versionNumber = " + versionNumber + "]"); } // Get page map by name, creating the default page map automatically PageMap pageMap ...
public final Page getPage(final String pageMapName, final String path, final int versionNumber) { if (log.isDebugEnabled()) { log.debug("Getting page [path = " + path + ", versionNumber = " + versionNumber + "]"); } // Get page map by name, creating the default page map automatically PageMap pageMap ...
private void createIndexList(ZipOutputStream zOut) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); // encoding must be UTF8 as specified in the specs. PrintWriter writer = new PrintWriter(new OutputStreamWriter(baos, ...
private void createIndexList(ZipOutputStream zOut) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); // encoding must be UTF8 as specified in the specs. PrintWriter writer = new PrintWriter(new OutputStreamWriter(baos, ...
public boolean isEnabled () { checkWidget(); return getEnabled () && parent.isEnabled (); } boolean isFocusAncestor () { Control control = display.getFocusControl (); while (control != null && control != this) { control = control.parent; } return control == this; }
public boolean isEnabled () { checkWidget(); return getEnabled () && parent.isEnabled (); } boolean isFocusAncestor () { Control control = display.getFocusControl (); while (control != null && control != this && !(control instanceof Shell)) { control = control.parent; } return control == this; }
public static Test suite() { TestSuite suite = new TestSuite(AjdeTests.class.getName()); //$JUnit-BEGIN$ suite.addTestSuite(BuildOptionsTest.class); suite.addTestSuite(BuildConfigurationTests.class); suite.addTestSuite(StructureModelRegressionTest.class); suite.add...
public static Test suite() { TestSuite suite = new TestSuite(AjdeTests.class.getName()); //$JUnit-BEGIN$ suite.addTestSuite(BuildOptionsTest.class); suite.addTestSuite(BuildConfigurationTests.class); suite.addTestSuite(StructureModelRegressionTest.class); suite.add...
public String newChildId() { childIdCounter++; if (childIdCounter == Long.MAX_VALUE) { // mmm yeah...like this will ever happen throw new RuntimeException("generateChildId() out of space."); } // We prepend the id's with the text 'id' so they will generate valid // markup id's if needed. return ...
public String newChildId() { childIdCounter++; if (childIdCounter == Long.MAX_VALUE) { // mmm yeah...like this will ever happen throw new RuntimeException("generateChildId() out of space."); } // We prepend the id's with the text 'id' so they will generate valid // markup id's if needed. return ...
import org.eclipse.xtend.backend.aop.internal.AdviceContextImpl; /* Copyright (c) 2008 Arno Haase. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal...
import org.eclipse.xtend.backend.aop.internal.AdviceContextImpl; /* Copyright (c) 2008 Arno Haase. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal...
protected void setUp() throws Exception { super.setUp(); // Find the configurer m_configurer = (Configurer)getComponentManager().lookup( Configurer.ROLE ); // Setup a context m_context = new DefaultTaskContext( getComponentManager() ); final File baseDir = new F...
protected void setUp() throws Exception { super.setUp(); // Find the configurer m_configurer = (Configurer)getComponentManager().lookup( Configurer.ROLE ); // Setup a context m_context = new DefaultTaskContext(); final File baseDir = new File( "." ).getAbsoluteF...
public void testProcessing() throws Exception { RunTime controller = new RunTime(); controller.setRuntime(10); TestSampler samp1 = new TestSampler("Sample 1", 500); TestSampler samp2 = new TestSampler("Sample 2", 500); LoopController sub1 = new LoopController(); sub1.setLoops(2); sub1.setContin...
public void testProcessing() throws Exception { RunTime controller = new RunTime(); controller.setRuntime(10); TestSampler samp1 = new TestSampler("Sample 1", 500); TestSampler samp2 = new TestSampler("Sample 2", 490); LoopController sub1 = new LoopController(); sub1.setLoops(2); sub1.setContin...
public int[][] getQuantizationTablesValues() { int[][] values = new int[4][]; int valuesIndex = 0; int totalLength = getSegmentLength() - 2; int ofs = 4; while (totalLength > 64) { int[] qk = new int[64]; int pq = (reference[ofs] & 0xFF) >> 4; if (pq == 0) { for (int i = 0; i < qk.length; i++) { qk[i]...
public int[][] getQuantizationTablesValues() { int[][] values = new int[4][]; int valuesIndex = 0; int totalLength = getSegmentLength() - 2; int ofs = 4; while (totalLength > 64) { int[] qk = new int[64]; int pq = (reference[ofs] & 0xFF) >> 4; if (pq == 0) { for (int i = 0; i < qk.length; i++) { qk[i]...
protected Control createContents(Composite parent) { if (view == null) throw new NullPointerException("view cannot be null"); // Get ILocalInputHandler from view ILocalInputHandler inputHandler = null; Object obj = view.getAdapter(ILocalInputHandler.class); if (obj == null) throw new NullPointerExcepti...
protected Control createContents(Composite parent) { if (view == null) throw new NullPointerException("view cannot be null"); // Get ILocalInputHandler from view ILocalInputHandler inputHandler = null; Object obj = view.getAdapter(ILocalInputHandler.class); if (obj == null) throw new NullPointerExcepti...
private void insertTestData(Session session) throws HibernateException { int count = 0; CD cd; List tracks; Set categories; String artist; Category catPop = newCategory(session, "pop"); Category catRock = newCategory(session, "rock"); Category catClassical = newCategory(session, "classical"); Catego...
private void insertTestData(Session session) throws HibernateException { int count = 0; CD cd; List tracks; Set categories; String artist; Category catPop = newCategory(session, "pop"); Category catRock = newCategory(session, "rock"); Category catClassical = newCategory(session, "classical"); Catego...
public void execute() throws TaskException { final Commandline command = buildCommandline(); final Properties env = buildEnvironment(); final Execute2 exe = new Execute2(); setupLogger( exe ); if( m_dest == null ) { m_dest = getBaseDirectory(); ...
public void execute() throws TaskException { final Commandline command = buildCommandline(); final Properties env = buildEnvironment(); final Execute2 exe = new Execute2(); setupLogger( exe ); if( m_dest == null ) { m_dest = getBaseDirectory(); ...
private Execute2 createExecute() throws TaskException { final Properties environment = m_env.getVariables(); logExecDetails( environment ); final Execute2 exe = new Execute2(); setupLogger( exe ); exe.setTimeout( m_timeout ); exe.setWorkingDirectory( m_d...
private Execute2 createExecute() throws TaskException { final Properties environment = m_env.getVariables(); logExecDetails( environment ); final Execute2 exe = new Execute2(); setupLogger( exe ); exe.setTimeout( m_timeout ); exe.setWorkingDirectory( m_d...
public void execute() throws TaskException { validate(); final String message = "Generating Key for " + m_alias; getLogger().info( message ); final Commandline cmd = createCommand(); final Execute2 exe = new Execute2(); exe.setWorkingDirectory( getBaseDi...
public void execute() throws TaskException { validate(); final String message = "Generating Key for " + m_alias; getLogger().info( message ); final Commandline cmd = createCommand(); final Execute2 exe = new Execute2(); exe.setWorkingDirectory( getBaseDi...
private void doOneJar( final File jarSource, final File jarTarget ) throws TaskException { if( isUpToDate( jarSource, jarTarget ) ) { return; } final String message = "Signing Jar : " + jarSource.getAbsolutePath(); getLogger().info( message ); ...
private void doOneJar( final File jarSource, final File jarTarget ) throws TaskException { if( isUpToDate( jarSource, jarTarget ) ) { return; } final String message = "Signing Jar : " + jarSource.getAbsolutePath(); getLogger().info( message ); ...
public void execute() throws TaskException { validate(); final Execute2 exe = new Execute2(); setupLogger( exe ); final Commandline cmd = buildCommand(); exe.setCommandline( cmd.getCommandline() ); try { exe.execute(); } ...
public void execute() throws TaskException { validate(); final Execute2 exe = new Execute2(); setupLogger( exe ); final Commandline cmd = buildCommand(); exe.setCommandline( cmd ); try { exe.execute(); } catch( IOExce...
public void execute() throws TaskException { if( m_sourcePath == null ) { String msg = "sourcePath attribute must be set!"; throw new TaskException( msg ); } getLogger().info( "Generating Javadoc" ); if( m_doctitle != null ) { ...
public void execute() throws TaskException { if( m_sourcePath == null ) { String msg = "sourcePath attribute must be set!"; throw new TaskException( msg ); } getLogger().info( "Generating Javadoc" ); if( m_doctitle != null ) { ...
public void execute() throws TaskException { checkConfiguration(); final ArrayList files = getFileList(); // quick exit if the target is up to date if( isUpToDate( files ) ) { return; } getLogger().info( "Building cab: " + m_cabFile....
public void execute() throws TaskException { checkConfiguration(); final ArrayList files = getFileList(); // quick exit if the target is up to date if( isUpToDate( files ) ) { return; } getLogger().info( "Building cab: " + m_cabFile....
protected int run( final Commandline cmd, final ExecOutputHandler handler ) throws TaskException { try { final Execute2 exe = new Execute2(); setupLogger( exe ); if( null != handler ) { exe.setExecOutputHandler( handler ); ...
protected int run( final Commandline cmd, final ExecOutputHandler handler ) throws TaskException { try { final Execute2 exe = new Execute2(); setupLogger( exe ); if( null != handler ) { exe.setExecOutputHandler( handler ); ...
protected int run( Commandline cmd ) throws TaskException { try { final Execute2 exe = new Execute2(); setupLogger( exe ); exe.setWorkingDirectory( getBaseDirectory() ); exe.setCommandline( cmd.getCommandline() ); return exe.exe...
protected int run( Commandline cmd ) throws TaskException { try { final Execute2 exe = new Execute2(); setupLogger( exe ); exe.setWorkingDirectory( getBaseDirectory() ); exe.setCommandline( cmd ); return exe.execute(); }...
public void runCommand() throws TaskException { int err = -1;// assume the worst try { if( _traceCommandLine ) { //_owner.getLogger().info( _commandLine.toString() ); } else { //in verbose...
public void runCommand() throws TaskException { int err = -1;// assume the worst try { if( _traceCommandLine ) { //_owner.getLogger().info( _commandLine.toString() ); } else { //in verbose...
private void buildBorlandStubs( Iterator ithomes, Hashtable files ) { final Execute2 exe = new Execute2(); exe.setWorkingDirectory( getTask().getBaseDirectory() ); final Commandline cmd = buildCommandline( ithomes ); exe.setCommandline( cmd.getCommandline() ); getLogger...
private void buildBorlandStubs( Iterator ithomes, Hashtable files ) { final Execute2 exe = new Execute2(); exe.setWorkingDirectory( getTask().getBaseDirectory() ); final Commandline cmd = buildCommandline( ithomes ); exe.setCommandline( cmd ); getLogger().debug( "Callin...
protected void executeFork() throws TaskException { try { final Commandline cmd = buildCommand(); getLogger().info( "mode : fork" ); getLogger().debug( "Calling java2iiop" ); final Execute2 exe = new Execute2(); setupLogger( ...
protected void executeFork() throws TaskException { try { final Commandline cmd = buildCommand(); getLogger().info( "mode : fork" ); getLogger().debug( "Calling java2iiop" ); final Execute2 exe = new Execute2(); setupLogger( ...
protected void execP4Command( final String command, ExecOutputHandler handler ) throws TaskException { try { final Commandline cmd = new Commandline(); cmd.setExecutable( "p4" ); //Check API for these - it's how CVS d...
protected void execP4Command( final String command, ExecOutputHandler handler ) throws TaskException { try { final Commandline cmd = new Commandline(); cmd.setExecutable( "p4" ); //Check API for these - it's how CVS d...
public void execute() throws TaskException { checkOptions(); File paramfile = createParamFile(); try { Commandline cmdl = new Commandline(); cmdl.setExecutable( new File( home, "jpcovmerge" ).getAbsolutePath() ); if( verbose ) ...
public void execute() throws TaskException { checkOptions(); File paramfile = createParamFile(); try { Commandline cmdl = new Commandline(); cmdl.setExecutable( new File( home, "jpcovmerge" ).getAbsolutePath() ); if( verbose ) ...
public void execute() throws TaskException { checkOptions(); try { Commandline cmdl = new Commandline(); // we need to run Coverage from his directory due to dll/jar issues cmdl.setExecutable( new File( home, "jpcovreport" ).getAbsolutePath() )...
public void execute() throws TaskException { checkOptions(); try { Commandline cmdl = new Commandline(); // we need to run Coverage from his directory due to dll/jar issues cmdl.setExecutable( new File( home, "jpcovreport" ).getAbsolutePath() )...
public void execute() throws TaskException { File paramfile = null; // if an input file is used, all other options are ignored... if( m_inputFile == null ) { checkOptions(); paramfile = createParamFile(); } else { ...
public void execute() throws TaskException { File paramfile = null; // if an input file is used, all other options are ignored... if( m_inputFile == null ) { checkOptions(); paramfile = createParamFile(); } else { ...
protected int run( Commandline cmd ) throws TaskException { try { final Execute2 exe = new Execute2(); setupLogger( exe ); // If location of ss.ini is specified we need to set the // environment-variable SSDIR to this value if(...
protected int run( Commandline cmd ) throws TaskException { try { final Execute2 exe = new Execute2(); setupLogger( exe ); // If location of ss.ini is specified we need to set the // environment-variable SSDIR to this value if(...
public void execute() throws TaskException { final Commandline cmd = createCommand(); final Execute2 exe = new Execute2(); setupLogger( exe ); if( m_topDir == null ) { m_topDir = getBaseDirectory(); } exe.setWorkingDirectory( m_topDir ); ...
public void execute() throws TaskException { final Commandline cmd = createCommand(); final Execute2 exe = new Execute2(); setupLogger( exe ); if( m_topDir == null ) { m_topDir = getBaseDirectory(); } exe.setWorkingDirectory( m_topDir ); ...
public static void addFileMenu(JPopupMenu menu) { addSeparator(menu); menu.add(makeMenuItem(JMeterUtils.getResString("open"), "Open", "open")); menu.add(makeMenuItem(JMeterUtils.getResString("save"), "Save", "save")); JMenuItem disabled = makeMenuItem(JMeterUtils.getResString("disable"),"Disable","disable"); ...
public static void addFileMenu(JPopupMenu menu) { addSeparator(menu); menu.add(makeMenuItem(JMeterUtils.getResString("open"), "Open", "open")); menu.add(makeMenuItem(JMeterUtils.getResString("save"), "Save", "save_as")); JMenuItem disabled = makeMenuItem(JMeterUtils.getResString("disable"),"Disable","disable"...
public void controlResized(ControlEvent e) { Rectangle area = comp.getClientArea(); Point preferredSize = table.computeSize(SWT.DEFAULT, SWT.DEFAULT); int width = area.width - 2*table.getBorderWidth(); if (preferredSize.y > area.height) { // Subtract the scrollbar width from the total column width ...
public void controlResized(ControlEvent e) { Rectangle area = comp.getClientArea(); Point preferredSize = table.computeSize(SWT.DEFAULT, SWT.DEFAULT); int width = area.width - 2*table.getBorderWidth(); if (preferredSize.y > area.height + table.getHeaderHeight()) { // Subtract the scrollbar width from ...
public void setFont (Font font) { checkWidget (); if (caret != null) caret.setFont (font); super.setFont (font); } int /*long*/ windowProc (int /*long*/ hwnd, int msg, int /*long*/ wParam, int /*long*/ lParam) { if (msg == Display.SWT_RESTORECARET) { if ((state & CANVAS) != 0) { if (caret != null) { caret...
public void setFont (Font font) { checkWidget (); if (caret != null) caret.setFont (font); super.setFont (font); } int /*long*/ windowProc (int /*long*/ hwnd, int msg, int /*long*/ wParam, int /*long*/ lParam) { if (msg == Display.SWT_RESTORECARET) { if ((state & CANVAS) != 0) { if (caret != null) { caret...
public void testJar1() throws IOException { List args = new ArrayList(); args.add("-outjar"); args.add("out/lib.jar"); args.add("-classpath"); args.add(AjcTests.aspectjrtClasspath()); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/lib/ConcreteA.aj"); ...
public void testJar1() throws IOException { List args = new ArrayList(); args.add("-outjar"); args.add("out/lib.jar"); args.add("-classpath"); args.add(AjcTests.aspectjrtClasspath()); args.add("-d"); args.add("out"); args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/binary/lib/ConcreteA.aj"); ...
public void removePresenceListener(IPresenceListener listener) { synchronized (presenceListeners) { presenceListeners.add(listener); } } }
public void removePresenceListener(IPresenceListener listener) { synchronized (presenceListeners) { presenceListeners.remove(listener); } } }
public EnvironmentInfo getEnvironmentInfo() { if (environmentInfoTracker == null) { environmentInfoTracker = new ServiceTracker(context, org.eclipse.osgi.service.environment.EnvironmentInfo.class.getName(), null); environmentInfoTracker.open(); } return (EnvironmentInfo) environmentInfoTracker.getService()...
public EnvironmentInfo getEnvironmentInfo() { if (environmentInfoTracker == null) { environmentInfoTracker = new ServiceTracker(context, org.eclipse.osgi.service.environment.EnvironmentInfo.class.getName(), null); environmentInfoTracker.open(); } return (EnvironmentInfo) environmentInfoTracker.getService()...
public Object convert(Object value, Class toType, Locale locale) { Converter converter = null; Object converted = null; try { converter = converterRegistry.lookup(toType, locale); if (converter != null) // we found a converter { ...
public Object convert(Object value, Class toType, Locale locale) { Converter converter = null; Object converted = null; try { converter = converterRegistry.lookup(toType, locale); if (converter != null) // we found a converter { ...
public static boolean canConvert(Class c1, Class c2, boolean strict) { c1 = wrap(c1); c2 = wrap(c2); if (c2.isAssignableFrom(c1)) return true; boolean c1Number = Number.class.isAssignableFrom(c1); boolean c2Number = Number.class.isAssignableFrom(c2); if (...
public static boolean canConvert(Class c1, Class c2, boolean strict) { c1 = wrap(c1); c2 = wrap(c2); if (c2.isAssignableFrom(c1)) return true; boolean c1Number = Number.class.isAssignableFrom(c1); boolean c2Number = Number.class.isAssignableFrom(c2); if (...
public void setWarfile(File warFile) { log("DEPRECATED - The warfile attribute is deprecated. Use file attribute instead."); super.setFile(warFile); }
public void setWarfile(File warFile) { log("DEPRECATED - The warfile attribute is deprecated. Use file attribute instead."); setFile(warFile); }
public void addDragListener(DragSourceListener listener) { if (listener == null) DND.error (SWT.ERROR_NULL_ARGUMENT); DNDListener typedListener = new DNDListener (listener); addListener (DND.DragStart, typedListener); addListener (DND.DragSetData, typedListener); addListener (DND.DragEnd, typedListener); } protec...
public void addDragListener(DragSourceListener listener) { if (listener == null) DND.error (SWT.ERROR_NULL_ARGUMENT); DNDListener typedListener = new DNDListener (listener); addListener (DND.DragStart, typedListener); addListener (DND.DragSetData, typedListener); addListener (DND.DragEnd, typedListener); } protec...
protected final void doConfigure( final Task task, final Configuration taskModel, final TaskContext taskContext ) throws ConfigurationException { m_configurer.configure( task, taskModel, taskContext ); }
protected final void doConfigure( final Task task, final Configuration taskModel, final TaskContext taskContext ) throws ConfigurationException { m_configurer.configureElement( task, taskModel, taskContext ); }
public void layout (Control [] changed) { checkWidget (); if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); for (int i=0; i<changed.length; i++) { Control control = changed [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); bool...
public void layout (Control [] changed) { checkWidget (); if (changed == null) error (SWT.ERROR_INVALID_ARGUMENT); for (int i=0; i<changed.length; i++) { Control control = changed [i]; if (control == null) error (SWT.ERROR_INVALID_ARGUMENT); if (control.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT); bool...
public boolean validate() { if (!(m_world instanceof BcelWorld)) { reportError("Internal error: world must be of type BcelWorld"); return false; } // name must be undefined so far ResolvedType current = m_world.resolve(m_concreteAspect.name, true); if...
public boolean validate() { if (!(m_world instanceof BcelWorld)) { reportError("Internal error: world must be of type BcelWorld"); return false; } // name must be undefined so far ResolvedType current = m_world.resolve(m_concreteAspect.name, true); if...
public void paint(Graphics g) { Insets insets = getInsets(); if (awtImage != null) { g.drawImage(awtImage, 10 + insets.left, 10 + insets.top, null); } } }; frame.setTitle("AWT Image"); shell.setLocation(50, 50); Rectangle bounds = swtImage.getBounds(); shell.setSize(bounds.width + 50, bounds.heigh...
public void paint(Graphics g) { Insets insets = getInsets(); if (awtImage != null) { g.drawImage(awtImage, 10 + insets.left, 10 + insets.top, null); } } }; frame.setTitle("AWT Image"); shell.setLocation(50, 50); Rectangle bounds = swtImage.getBounds(); shell.setSize(bounds.width + 50, bounds.heigh...
public static synchronized TopicConnectionFactory getTopicConnectionFactory(Context ctx, String fac) { while (factory == null) { try { Object objfac = ctx.lookup(fac); if (objfac instanceof TopicConnectionFactory) { factory = (TopicConnectionFactory) objfac; } } catch (NamingException e) { ...
public static synchronized TopicConnectionFactory getTopicConnectionFactory(Context ctx, String fac) { while (factory == null) { try { Object objfac = ctx.lookup(fac); if (objfac instanceof TopicConnectionFactory) { factory = (TopicConnectionFactory) objfac; } } catch (NamingException e) { ...
public void internal_dispose_GC (int /*long*/ context, GCData data) { checkWidget (); NSGraphicsContext graphicsContext = new NSGraphicsContext (context); display.removeContext (data); if (data != null) { if (data.paintRect == null) graphicsContext.flushGraphics (); if (data.visibleRgn != 0) OS.DisposeRgn(data....
public void internal_dispose_GC (int /*long*/ context, GCData data) { checkWidget (); NSGraphicsContext graphicsContext = new NSGraphicsContext (context); display.removeContext (data); if (data != null) { if (data.paintRect == null) graphicsContext.flushGraphics (); if (data.visibleRgn != 0) OS.DisposeRgn(data....
public void fireMessageListeners(ID sender, String msg); }
public void fireChatRoomMessageEvent(ID sender, String msg); }
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException { return new ECFSSLSocket(getSSLSocketFactory().createSocket(socket, host, port, autoClose)); }
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException { return getSSLSocketFactory().createSocket(socket, host, port, autoClose); }
private void normalizeWhitespace(String value, boolean collapse) { boolean skipSpace = collapse; char c; int size = value.length(); // ensure the ch array is big enough if (fNormalizedStr.ch == null || fNormalizedStr.ch.length < size) { fNormalizedStr.ch = new char[size]; } fNormalizedStr.offset = 0;...
private void normalizeWhitespace(String value, boolean collapse) { boolean skipSpace = collapse; char c; int size = value.length(); // ensure the ch array is big enough if (fNormalizedStr.ch == null || fNormalizedStr.ch.length < size) { fNormalizedStr.ch = new char[size]; } fNormalizedStr.offset = 0;...
public boolean isSelected(Resource r);
boolean isSelected(Resource r); /* * 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 License, Ver...
public void configure(TestElement el) { super.configure(el); JMSSampler sampler = (JMSSampler) el; queueuConnectionFactory.setText(sampler.getQueueConnectionFactory()); sendQueue.setText(sampler.getSendQueue()); receiveQueue.setText(sampler.getReceiveQueue()); JCombo...
public void configure(TestElement el) { super.configure(el); JMSSampler sampler = (JMSSampler) el; queueuConnectionFactory.setText(sampler.getQueueConnectionFactory()); sendQueue.setText(sampler.getSendQueue()); receiveQueue.setText(sampler.getReceiveQueue()); JCombo...
private byte[] buildRequest() { if (uploadedFiles == null) { if (post.getParameterNames().size() == 0) { return "".getBytes(); } Url url = new Url(); for (Iterator<String> iterator = post.getParameterNames().iterator(); iterator.hasNext();) { final String name = iterator.next(); List...
private byte[] buildRequest() { if (uploadedFiles == null && useMultiPartContentType == false) { if (post.getParameterNames().size() == 0) { return "".getBytes(); } Url url = new Url(); for (Iterator<String> iterator = post.getParameterNames().iterator(); iterator.hasNext();) { final Str...
void detach(RequestCycle requestCycle); /* * $Id$ * $Revision$ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of ...
void detach(RequestCycle requestCycle); /* * $Id$ * $Revision$ $Date$ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of ...
protected void runExec(Execute exe) throws BuildException { int totalFiles = 0; int totalDirs = 0; boolean haveExecuted = false; try { Vector fileNames = new Vector(); Vector baseDirs = new Vector(); for (int i = 0; i < filesets.size(); i++) { ...
protected void runExec(Execute exe) throws BuildException { int totalFiles = 0; int totalDirs = 0; boolean haveExecuted = false; try { Vector fileNames = new Vector(); Vector baseDirs = new Vector(); for (int i = 0; i < filesets.size(); i++) { ...