bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private Filter getFilter(String serviceInterface, String serviceFilter) { StringBuffer sb = new StringBuffer(); boolean andFilterWithInterfaceName = serviceFilter != null; if (andFilterWithInterfaceName) { sb.append("(&"); } if (serviceFilter != null) { sb.append(serviceFilter); } sb.append("("); sb.append...
private Filter getFilter(String serviceInterface, String serviceFilter) { StringBuffer sb = new StringBuffer(); boolean andFilterWithInterfaceName = serviceFilter != null; if (andFilterWithInterfaceName) { sb.append("(&"); } if (serviceFilter != null) { sb.append(serviceFilter); } sb.append("("); sb.append...
1,101,195
private Filter getFilter(String serviceInterface, String serviceFilter) { StringBuffer sb = new StringBuffer(); boolean andFilterWithInterfaceName = serviceFilter != null; if (andFilterWithInterfaceName) { sb.append("(&"); } if (serviceFilter != null) { sb.append(serviceFilter); } sb.append("("); sb.append...
private Filter getFilter(String serviceInterface, String serviceFilter) { StringBuffer sb = new StringBuffer(); boolean andFilterWithInterfaceName = serviceFilter != null; if (andFilterWithInterfaceName) { sb.append("(&"); } if (serviceFilter != null) { sb.append(serviceFilter); } sb.append("("); sb.append...
1,101,196
public AbstractFileName(final String scheme, final String absPath, FileType type) { this.rootUri = null; this.scheme = scheme; this.type = type; if (absPath != null && absPath.length() > 0) { if (absPath.endsWith("/")) { ...
public AbstractFileName(final String scheme, final String absPath, FileType type) { this.rootUri = null; this.scheme = scheme; this.type = type; if (absPath != null && absPath.length() > 0) { if (absPath.length() > 1 && absPath.endsWith("/"...
1,101,197
private synchronized void build() { // check accel if (accel != null) return; int n = primitives.getNumPrimitives(); if (n >= 10) UI.printInfo("[GEO] Building acceleration structure for %d primitives ...", n); if (n > 20000000) accel = new UniformG...
private synchronized void build() { // check accel if (builtAccel) return; int n = primitives.getNumPrimitives(); if (n >= 10) UI.printInfo("[GEO] Building acceleration structure for %d primitives ...", n); if (n > 20000000) accel = new UniformGrid...
1,101,200
void intersect(Ray r, IntersectionState state) { if (accel == null) build(); accel.intersect(r, state); }
void intersect(Ray r, IntersectionState state) { if (!builtAccel) build(); accel.intersect(r, state); }
1,101,202
protected String[] getBundleLocations() { return new String[]{ localMavenArtifact("org.springframework.osgi", "aopalliance.osgi", "1.0-SNAPSHOT"), localMavenArtifact("org.springframework.osgi", "commons-collections.osgi", "3.2-SNAPSHOT"), localMavenArtifact("org.s...
protected String[] getBundleLocations() { return new String[]{ localMavenArtifact("org.springframework.osgi", "aopalliance.osgi", "1.0-SNAPSHOT"), localMavenArtifact("org.springframework.osgi", "commons-collections.osgi", "3.2-SNAPSHOT"), localMavenArtifact("org.s...
1,101,203
public void test() throws ScriptsExecutorException { final ScriptsExecutor se = newScriptsExecutor("PropertiesTest.xml"); se.execute(); assertEquals("jdbc:hsqldb:mem:propertiestest", params.getUrl()); assertEquals("sa", params.getUser()); assertEquals("", params.getPassword()); ...
public void test() throws ScriptsExecutorException { final ScriptsExecutor se = newScriptsExecutor("PropertiesTest.xml"); se.execute(); assertEquals("jdbc:hsqldb:mem:propertiestest", params.getUrl()); assertEquals("sa", params.getUser()); assertEquals("", params.getPassword()); ...
1,101,204
protected void doAttach() throws Exception { final GenericFileName name = (GenericFileName) getName(); url = new HttpURL(name.getUserName(), name.getPassword(), name.getHostName(), name.getPort(), name.getPath()); resource = new WebdavResource(fileSystem.getClient()) { }; ...
protected void doAttach() throws Exception { final GenericFileName name = (GenericFileName) getName(); url = new HttpURL(name.getUserName(), name.getPassword(), name.getHostName(), name.getPort(), name.getPath()); resource = new WebdavResource(fileSystem.getClient()) { final Op...
1,101,205
public Bundle getBundle() throws Exception { Assert.notNull(bundleUrl, "BundleUrl is required"); Assert.notNull(bundleContext, "BundleContext is required"); if (bundle == null) { bundle = bundleContext.installBundle(bundleUrl.getURL().toString()); classloader = new BundleDelegatingClassLoader(bundle); bundleC...
public Bundle getBundle() throws Exception { Assert.notNull(bundleUrl, "location is required"); Assert.notNull(bundleContext, "BundleContext is required"); if (bundle == null) { bundle = bundleContext.installBundle(bundleUrl.getURL().toString()); classloader = new BundleDelegatingClassLoader(bundle); bundleCo...
1,101,208
public String getNameInNamespace() { return ""; }
public String getNameInNamespace() { return "dc=scriptella"; }
1,101,210
public void testModifyAdd() throws NamingException { final Entry e = readEntry( "dn: cn=ldap,dc=scriptella\n" + "cn: ldap\n" + "objectClass: top\n" + "objectClass: driver\n" + "envVars:"); ...
public void testModifyAdd() throws NamingException { final Entry e = readEntry( "dn: cn=ldap,dc=scriptella\n" + "cn: ldap\n" + "objectClass: top\n" + "objectClass: driver\n" + "envVars:"); ...
1,101,211
public void testModifyAdd() throws NamingException { final Entry e = readEntry( "dn: cn=ldap,dc=scriptella\n" + "cn: ldap\n" + "objectClass: top\n" + "objectClass: driver\n" + "envVars:"); ...
public void testModifyAdd() throws NamingException { final Entry e = readEntry( "dn: cn=ldap,dc=scriptella\n" + "cn: ldap\n" + "objectClass: top\n" + "objectClass: driver\n" + "envVars:"); ...
1,101,212
public DirContext createSubcontext(Name name, Attributes attrs) throws InvalidNameException { assertEquals(newName("cn=ldap"), name); BasicAttributes exp = new BasicAttributes(true); //TODO check why to lowercase attribute names exp.put("cn", "ldap...
public DirContext createSubcontext(Name name, Attributes attrs) throws InvalidNameException { assertEquals(newName("cn=ldap"), name); BasicAttributes exp = new BasicAttributes(true); //TODO check why to lowercase attribute names exp.put("cn", "ldap...
1,101,213
public DirContext createSubcontext(Name name, Attributes attrs) throws InvalidNameException { assertEquals(newName("cn=ldap"), name); BasicAttributes exp = new BasicAttributes(true); //TODO check why to lowercase attribute names exp.put("cn", "ldap...
public DirContext createSubcontext(Name name, Attributes attrs) throws InvalidNameException { assertEquals(newName("cn=ldap"), name); BasicAttributes exp = new BasicAttributes(true); //TODO check why to lowercase attribute names exp.put("cn", "ldap...
1,101,214
private void createInterceptor() { this.interceptor = new OsgiServiceInterceptor( this.tgtSource, SI.class ); }
private void createInterceptor() { this.interceptor = new OsgiServiceInterceptor( this.tgtSource, SI.class, new Object() ); }
1,101,215
private FileInfo buildExpectedStructure() { // Build the expected structure final FileInfo base = new FileInfo( getReadFolder().getName().getBaseName(), FileType.FOLDER ); base.addChild( "file1.txt", FileType.FILE ); base.addChild( "empty.txt", FileType.FILE ); base.addChild( "...
private FileInfo buildExpectedStructure() { // Build the expected structure final FileInfo base = new FileInfo( getReadFolder().getName().getBaseName(), FileType.FOLDER ); base.addChild( "file1.txt", FileType.FILE ); base.addChild( "empty.txt", FileType.FILE ); base.addChild( "...
1,101,216
private void attach() throws FileSystemException { if (attached) { return; } try { // Attach and determine the file type doAttach(); attached = true; type = doGetType(); if (type == null) { ...
private void attach() throws FileSystemException { if (attached) { return; } try { // Attach and determine the file type doAttach(); attached = true; if (type == null) { type = FileType...
1,101,217
private void attach() throws FileSystemException { if (attached) { return; } try { // Attach and determine the file type doAttach(); attached = true; type = doGetType(); if (type == null) { ...
private void attach() throws FileSystemException { if (attached) { return; } try { // Attach and determine the file type doAttach(); attached = true; type = doGetType(); if (type == null) { ...
1,101,218
private void attach() throws FileSystemException { if (attached) { return; } try { // Attach and determine the file type doAttach(); attached = true; type = doGetType(); if (type == null) { ...
private void attach() throws FileSystemException { if (attached) { return; } try { // Attach and determine the file type doAttach(); attached = true; type = doGetType(); if (type == null) { ...
1,101,219
public FileObject[] getChildren() throws FileSystemException { attach(); if (!type.hasChildren()) { throw new FileSystemException("vfs.provider/list-children-not-folder.error", name); } // Use cached info, if present if (children != null) { r...
public FileObject[] getChildren() throws FileSystemException { attach(); if (!type.hasChildren()) { throw new FileSystemException("vfs.provider/list-children-not-folder.error", name); } // Use cached info, if present if (children != null) { r...
1,101,220
protected void addCapabilities( final Collection caps ) { caps.add( Capability.CREATE ); caps.add( Capability.DELETE ); caps.add( Capability.GET_TYPE ); caps.add( Capability.LIST_CHILDREN ); caps.add( Capability.READ_CONTENT ); caps.add( Capability.LAST_MODIFIED ); ...
protected void addCapabilities( final Collection caps ) { caps.add( Capability.CREATE ); caps.add( Capability.DELETE ); caps.add( Capability.GET_TYPE ); caps.add( Capability.LIST_CHILDREN ); caps.add( Capability.READ_CONTENT ); caps.add( Capability.SET_LAST_MODIFIED ); c...
1,101,221
public ParsedUri parseSmbUri( final String uriStr ) throws FileSystemException { final ParsedSmbUri uri = new ParsedSmbUri(); final StringBuffer name = new StringBuffer(); // Extract the scheme and authority parts extractToPath( uriStr, name, uri ); // Convert the hostna...
public ParsedUri parseSmbUri( final String uriStr ) throws FileSystemException { final ParsedSmbUri uri = new ParsedSmbUri(); final StringBuffer name = new StringBuffer(); // Extract the scheme and authority parts extractToPath( uriStr, name, uri ); // Convert the hostna...
1,101,222
private static AbstractApplicationContext getAgilefantSpringContext() { if(agilefantContext == null) { // get the static logger Log log = LogFactory.getLog(ExplicitSpringSupport.class); // inform that we're initializing spring log.info("initializing spring"); // create the context agilefantContex...
private static AbstractApplicationContext getAgilefantSpringContext() { if(agilefantContext == null) { // get the static logger Log log = LogFactory.getLog(ExplicitSpringSupport.class); // inform that we're initializing spring log.info("initializing spring"); // create the context agilefantContex...
1,101,223
protected void doRename(FileObject newfile) throws Exception { if (!file.renameTo(((LocalFile) newfile).getLocalFile())) { throw new FileSystemException("vfs.provider.local/rename-file.error", new String[]{file.toString(), newfile.toString()}); } }
protected void doRename(final FileObject newfile) throws Exception { if (!file.renameTo(((LocalFile) newfile).getLocalFile())) { throw new FileSystemException("vfs.provider.local/rename-file.error", new String[]{file.toString(), newfile.toString()}); } }
1,101,224
protected void doRename(FileObject newfile) throws Exception { if (!file.renameTo(((LocalFile) newfile).getLocalFile())) { throw new FileSystemException("vfs.provider.local/rename-file.error", new String[]{file.toString(), newfile.toString()}); } }
protected void doRename(FileObject newfile) throws Exception { LocalFile newLocalFile = (LocalFile) FileObjectUtils.getAbstractFileObject(newfile); if (!file.renameTo(newLocalFile.getLocalFile())) { throw new FileSystemException("vfs.provider.local/rename-file.error", new...
1,101,225
private void removeNounConceptPath(Set<List<Concept>> pathSet) { Set<List<Concept>> removeSet = new HashSet<List<Concept>>(); for (List<Concept> path : pathSet) { Concept c = path.get(1); if (!(c.getId().equals("30f801") || c.getId().equals("30f83e"))) { removeSet....
private void removeNounConceptPath(Set<List<Concept>> pathSet) { Set<List<Concept>> removeSet = new HashSet<List<Concept>>(); for (List<Concept> path : pathSet) { Concept c = path.get(2); if (!(c.getId().equals("30f801") || c.getId().equals("30f83e"))) { removeSet....
1,101,226
public GenbankProcessor(SequenceBuilder theDelegate) { super(theDelegate); features = new FeatureTableParser(this, "GenBank"); }
public GenbankProcessor(SequenceBuilder theDelegate, String theSource) { super(theDelegate); features = new FeatureTableParser(this, "GenBank"); }
1,101,227
public GenbankProcessor(SequenceBuilder theDelegate) { super(theDelegate); features = new FeatureTableParser(this, "GenBank"); }
public GenbankProcessor(SequenceBuilder theDelegate) { super(theDelegate); features = new FeatureTableParser(this, theSource); }
1,101,228
public FileSystemException( final String message ) { this( message, null ); }
public FileSystemException( final String code ) { this( message, null ); }
1,101,229
public FileSystemException( final String message ) { this( message, null ); }
public FileSystemException( final String message ) { this( code, null , null); }
1,101,230
protected String[] doListChildren() throws Exception { if ( children == null ) { // List the children of this file children = ftpFs.getClient().listFiles( getName().getPath() ); if ( children == null ) { children = EMPTY_FTP_FILE_ARR...
protected String[] doListChildren() throws Exception { if ( children == null ) { // List the children of this file children = ftpFs.getClient().listFiles( getName().getPath() ); if ( children == null ) { children = EMPTY_FTP_FILE_ARR...
1,101,231
protected String[] doListChildren() throws Exception { if ( children == null ) { // List the children of this file children = ftpFs.getClient().listFiles( getName().getPath() ); if ( children == null ) { children = EMPTY_FTP_FILE_ARR...
protected String[] doListChildren() throws Exception { if ( children == null ) { // List the children of this file children = ftpFs.getClient().listFiles( getName().getPath() ); if ( children == null ) { children = EMPTY_FTP_FILE_ARR...
1,101,232
protected String[] doListChildren() throws Exception { if ( children == null ) { // List the children of this file children = ftpFs.getClient().listFiles( getName().getPath() ); if ( children == null ) { children = EMPTY_FTP_FILE_ARR...
protected String[] doListChildren() throws Exception { if ( children == null ) { // List the children of this file children = ftpFs.getClient().listFiles( getName().getPath() ); if ( children == null ) { children = EMPTY_FTP_FILE_ARR...
1,101,233
public final void accel(String accel) { if (accel.equals("uniformgrid")) accel(new UniformGrid()); else if (accel.equals("null")) accel(new NullAccelerator()); else if (accel.equals("bvh")) accel(new BoundingVolumeHierarchy()); else if (accel.equals("kdtr...
public final void accel(String accel) { if (accel.equals("uniformgrid")) accel(new UniformGrid()); else if (accel.equals("null")) accel(new NullAccelerator()); else if (accel.equals("bvh")) accel(new BoundingVolumeHierarchy()); else if (accel.equals("kdtr...
1,101,234
public final void accel(String accel) { if (accel.equals("uniformgrid")) accel(new UniformGrid()); else if (accel.equals("null")) accel(new NullAccelerator()); else if (accel.equals("bvh")) accel(new BoundingVolumeHierarchy()); else if (accel.equals("kdtr...
public final void accel(String accel) { if (accel.equals("uniformgrid")) accel(new UniformGrid()); else if (accel.equals("null")) accel(new NullAccelerator()); else if (accel.equals("bvh")) accel(new BoundingVolumeHierarchy()); else if (accel.equals("kdtr...
1,101,235
public static SunflowAPI create(String filename) { if (filename == null) return new SunflowAPI(); SunflowAPI api = null; if (filename.endsWith(".java")) { Timer t = new Timer(); UI.printInfo("[API] Compiling \"" + filename + "\" ..."); t.start(); ...
public static SunflowAPI create(String filename) { if (filename == null) return new SunflowAPI(); SunflowAPI api = null; if (filename.endsWith(".java")) { Timer t = new Timer(); UI.printInfo("[API] Compiling \"" + filename + "\" ..."); t.start(); ...
1,101,236
public final void mesh(Mesh mesh) { if (mesh instanceof MeshLight) mesh.init(this); else { Geometry geo = new Geometry(mesh); Instance instance = new Instance(mesh.getShaders(), null, geo); primitive(instance); } }
public final void mesh(Mesh mesh) { if (mesh instanceof MeshLight) mesh.init(this); else { Geometry geo = new Geometry(mesh); Instance instance = new Instance(mesh.getShaders(), null, geo); instance(instance); } }
1,101,237
public final void sphere(float x, float y, float z, float radius) { Sphere sphere = new Sphere(); Geometry geo = new Geometry(sphere); Matrix4 transform = Matrix4.translation(x, y, z).multiply(Matrix4.scale(radius)); primitive(new Instance(new Shader[] { currentShader }, transform, geo))...
public final void sphere(float x, float y, float z, float radius) { Sphere sphere = new Sphere(); Geometry geo = new Geometry(sphere); Matrix4 transform = Matrix4.translation(x, y, z).multiply(Matrix4.scale(radius)); instance(new Instance(new Shader[] { currentShader }, transform, geo));...
1,101,238
public TreeModel getDefaultConceptTreeModel(Set pathSet) { return treeMaker.getDefaultConceptTreeModel(pathSet, project); }
public TreeModel getDefaultConceptTreeModel(Set pathSet) { return treeMaker.getDefaultConceptTreeModel(pathSet, project); }
1,101,239
public FileObject createFileSystem( final String scheme, final FileObject file ) throws FileSystemException { FileProvider provider = (FileProvider)providers.get( scheme ); if ( provider == null ) { final String message = ...
public FileObject createFileSystem( final String scheme, final FileObject file ) throws FileSystemException { FileProvider provider = (FileProvider)providers.get( scheme ); if ( provider == null ) { final String message = ...
1,101,240
private LocalFileProvider getLocalFileProvider() throws FileSystemException { if ( localFileProvider == null ) { final String message = REZ.getString( "no-local-file-provider.error" ); throw new FileSystemException( message ); } return local...
private LocalFileProvider getLocalFileProvider() throws FileSystemException { if ( localFileProvider == null ) { final String message = REZ.getString( "no-local-file-provider.error" ); throw new FileSystemException( message ); } return local...
1,101,241
public FileReplicator getReplicator() throws FileSystemException { if ( fileReplicator == null ) { final String message = REZ.getString( "no-replicator.error" ); throw new FileSystemException( message ); } return fileReplicator; }
public FileReplicator getReplicator() throws FileSystemException { if ( fileReplicator == null ) { final String message = REZ.getString( "no-replicator.error" ); throw new FileSystemException( message ); } return fileReplicator; }
1,101,242
public void createFolder() throws FileSystemException { synchronized (fs) { if (getType() == FileType.FOLDER) { // Already exists as correct type return; } if (getType() != FileType.IMAGINARY) { thro...
public void createFolder() throws FileSystemException { synchronized (fs) { if (getType().hasChildren()) { // Already exists as correct type return; } if (getType() != FileType.IMAGINARY) { throw new...
1,101,243
public void moveTo(FileObject destFile) throws FileSystemException { if (canRenameTo(destFile)) { if (!getParent().isWriteable()) { throw new FileSystemException("vfs.provider/rename-parent-read-only.error", new FileName[]{getName(), getParent().getName()}); ...
public void moveTo(FileObject destFile) throws FileSystemException { if (canRenameTo(destFile)) { if (!getParent().isWriteable()) { throw new FileSystemException("vfs.provider/rename-parent-read-only.error", new FileName[]{getName(), getParent().getName()}); ...
1,101,244
public void testExecuteActionKeep() { boolean isTestPassed = false; Mail aMail = new MailImpl(); MailetContext aMailetContext = new MockMailetContext(); Action action = new ActionKeep(); try { ActionDispatcher.getInstance().execute(action, aMail, ...
public void testExecuteActionKeep() throws MessagingException { boolean isTestPassed = false; Mail aMail = new MailImpl(); MailetContext aMailetContext = new MockMailetContext(); Action action = new ActionKeep(); try { ActionDispatcher.getInstance().execute(ac...
1,101,245
public FileObject getBaseTestFolder(final FileSystemManager manager) throws Exception { final File baseDir = AbstractVfsTestCase.getTestDirectory(); final URL url = baseDir.toURL(); return manager.resolveFile(url.toExternalForm()); }
public FileObject getBaseTestFolder(final FileSystemManager manager) throws Exception { final File baseDir = AbstractVfsTestCase.getTestDirectoryFile(); final URL url = baseDir.toURL(); return manager.resolveFile(url.toExternalForm()); }
1,101,247
public static Session createConnection(String hostname, int port, char[] username, char[] password, FileSystemOptions fileSystemOptions) throws FileSystemException { JSch jsch = new JSch(); File sshDir = null; // new style - user passed File knownHostsFile = SftpFileSystemConfigBuilde...
public static Session createConnection(String hostname, int port, char[] username, char[] password, FileSystemOptions fileSystemOptions) throws FileSystemException { JSch jsch = new JSch(); File sshDir = null; // new style - user passed File knownHostsFile = SftpFileSystemConfigBuilde...
1,101,248
protected FileObject[] doListChildrenResolved() throws Exception { // List the contents of the folder final Vector vector; final ChannelSftp channel = fileSystem.getChannel(); try { vector = channel.ls(relPath); } finally { fileSystem.putChannel(channel); } if (vector == null) { throw new FileSystemEx...
protected FileObject[] doListChildrenResolved() throws Exception { // List the contents of the folder final Vector vector; final ChannelSftp channel = fileSystem.getChannel(); try { vector = channel.ls(relPath); } finally { fileSystem.putChannel(channel); } if (vector == null) { throw new FileSystemEx...
1,101,249
protected FileObject[] doListChildrenResolved() throws Exception { // List the contents of the folder final Vector vector; final ChannelSftp channel = fileSystem.getChannel(); try { vector = channel.ls(relPath); } finally { fileSystem.putChannel(channel); } if (vector == null) { throw new FileSystemEx...
protected FileObject[] doListChildrenResolved() throws Exception { // List the contents of the folder final Vector vector; final ChannelSftp channel = fileSystem.getChannel(); try { vector = channel.ls(relPath); } finally { fileSystem.putChannel(channel); } if (vector == null) { throw new FileSystemEx...
1,101,250
protected FileObject[] doListChildrenResolved() throws Exception { // List the contents of the folder final Vector vector; final ChannelSftp channel = fileSystem.getChannel(); try { vector = channel.ls(relPath); } finally { fileSystem.putChannel(channel); } if (vector == null) { throw new FileSystemEx...
protected FileObject[] doListChildrenResolved() throws Exception { // List the contents of the folder final Vector vector; final ChannelSftp channel = fileSystem.getChannel(); try { vector = channel.ls(relPath); } finally { fileSystem.putChannel(channel); } if (vector == null) { throw new FileSystemEx...
1,101,251
public TreeModel getTrimmedTreeModel(Set pathSet, DODDLEProject project) { TreeModel treeModel = getDefaultConceptTreeModel(pathSet, project); ConceptTreeNode root = (ConceptTreeNode) treeModel.getRoot(); trimmedConceptSet.clear(); root.setdepth(0); setDefaultDepth(root); // トリミング...
public TreeModel getTrimmedTreeModel(Set pathSet, DODDLEProject project) { TreeModel treeModel = getDefaultConceptTreeModel(pathSet, project); ConceptTreeNode root = (ConceptTreeNode) treeModel.getRoot(); trimmedConceptSet.clear(); root.setdepth(0); setDefaultDepth(root); // トリミング...
1,101,254
protected String handleParameter(final String name, final boolean expression, boolean jdbcParam) { Object p; if (expression) { p = parametersParser.evaluate(name, paramsCallback); } else { p = paramsCallback.g...
protected String handleParameter(final String name, final boolean expression, boolean jdbcParam) { Object p; if (expression) { p = getParametersParser().evaluate(name, paramsCallback); } else { p = paramsCallb...
1,101,256
private void releaseStatement(PreparedStatement ps) { if (statementCache!=null) { statementCache.closeRemovedStatements(); } else { JDBCUtils.closeSilent(ps); } params.clear(); IOUtils.closeSilently(converter); //closing resour...
private void releaseStatement(PreparedStatement ps) { if (statementCache!=null) { statementCache.closeRemovedStatements(); } else { JDBCUtils.closeSilent(ps); } params.clear(); IOUtils.closeSilently(converter); //closing resour...
1,101,258
public ParametersParser getParametersParser() { return parametersParser; }
public ParametersParser getParametersParser() { return parametersParser; }
1,101,259
public StatementCache getStatementCache() { return statementCache; }
public StatementCache getStatementCache() { return statementCache; }
1,101,260
public void addFile(final FileObject file) { synchronized (this.monitorMap) { if (this.monitorMap.get(file.getName()) == null) { this.monitorMap.put(file.getName(), new FileMonitorAgent(this, file)); try { ...
public void addFile(final FileObject file) { _addFile(file); try { if (this.monitorMap.get(file.getName()) == null) { this.monitorMap.put(file.getName(), new FileMonitorAgent(this, file)); try { ...
1,101,261
public void addFile(final FileObject file) { synchronized (this.monitorMap) { if (this.monitorMap.get(file.getName()) == null) { this.monitorMap.put(file.getName(), new FileMonitorAgent(this, file)); try { ...
public void addFile(final FileObject file) { synchronized (this.monitorMap) { if (file.getType().hasChildren()) { this.monitorMap.put(file.getName(), new FileMonitorAgent(this, file)); try { ...
1,101,262
public void addFile(final FileObject file) { synchronized (this.monitorMap) { if (this.monitorMap.get(file.getName()) == null) { this.monitorMap.put(file.getName(), new FileMonitorAgent(this, file)); try { ...
public void addFile(final FileObject file) { synchronized (this.monitorMap) { if (this.monitorMap.get(file.getName()) == null) { this.monitorMap.put(file.getName(), new FileMonitorAgent(this, file)); try { ...
1,101,263
public void addFile(final FileObject file) { synchronized (this.monitorMap) { if (this.monitorMap.get(file.getName()) == null) { this.monitorMap.put(file.getName(), new FileMonitorAgent(this, file)); try { ...
public void addFile(final FileObject file) { synchronized (this.monitorMap) { if (this.monitorMap.get(file.getName()) == null) { this.monitorMap.put(file.getName(), new FileMonitorAgent(this, file)); try { ...
1,101,264
public void addFile(final FileObject file) { synchronized (this.monitorMap) { if (this.monitorMap.get(file.getName()) == null) { this.monitorMap.put(file.getName(), new FileMonitorAgent(this, file)); try { ...
public void addFile(final FileObject file) { synchronized (this.monitorMap) { if (this.monitorMap.get(file.getName()) == null) { this.monitorMap.put(file.getName(), new FileMonitorAgent(this, file)); try { ...
1,101,265
public Reader open() throws IOException { try { URL u = new URL(url, href); return new InputStreamReader(u.openStream(), charset); } catch (MalformedURLException e) { throw (IOException) new IOException( "Unable to open referenced resource " + href)....
public Reader open() throws IOException { try { URL u = new URL(url, href); return new InputStreamReader(u.openStream(), charset); } catch (MalformedURLException e) { throw (IOException) new IOException( "Unable to open referenced resource " + href)....
1,101,268
public Color getIrradiance(ShadingState state, Color diffuseReflectance) { float cosTheta = Vector3.dot(up, state.getNormal()); float sine = (1 - cosTheta * cosTheta) * 0.5f; if (cosTheta > 0) return Color.blend(sky, ground, sine); else return Color.blend(ground, sk...
public Color getIrradiance(ShadingState state, Color diffuseReflectance) { float cosTheta = Vector3.dot(up, state.getNormal()); float sin2 = (1 - cosTheta * cosTheta); float sine = sin2 > 0 ? (float) Math.sqrt(sin2) * 0.5f : 0; if (cosTheta > 0) return Color.blend(sky, ground, sine);...
1,101,269
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i ...
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i ...
1,101,270
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i ...
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i ...
1,101,271
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i ...
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i ...
1,101,272
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i ...
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); String[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new String[n]; for (int i ...
1,101,273
public void close() throws FileSystemException { try { // Close the input stream if ( instr != null ) { try { instr.close(); } catch ( IOException ioe ) { ...
public void close() throws FileSystemException { try { // Close the input stream if ( instr != null ) { try { instr.close(); } catch ( IOException ioe ) { ...
1,101,274
public void close() throws FileSystemException { try { // Close the input stream if ( instr != null ) { try { instr.close(); } catch ( IOException ioe ) { ...
public void close() throws FileSystemException { try { // Close the input stream if ( instr != null ) { try { instr.close(); } catch ( IOException ioe ) { ...
1,101,275
public Certificate[] getCertificates() throws FileSystemException { if( !file.exists() ) { final String message = REZ.getString( "get-certificates-no-exist.error", file ); throw new FileSystemException( message ); } return file.doGetCertificates(); }
public Certificate[] getCertificates() throws FileSystemException { if( !file.exists() ) { final String message = REZ.getString( "get-certificates-no-exist.error", file ); throw new FileSystemException( message ); } return file.doGetCertificates(); }
1,101,276
public InputStream getInputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "read-folder.error", file ); throw new FileSystemException( message ); } if ( !file.exists() ) { final String message ...
public InputStream getInputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "read-folder.error", file ); throw new FileSystemException( message ); } if ( !file.exists() ) { final String message ...
1,101,277
public InputStream getInputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "read-folder.error", file ); throw new FileSystemException( message ); } if ( !file.exists() ) { final String message ...
public InputStream getInputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "read-folder.error", file ); throw new FileSystemException( message ); } if ( !file.exists() ) { final String message ...
1,101,278
public InputStream getInputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "read-folder.error", file ); throw new FileSystemException( message ); } if ( !file.exists() ) { final String message ...
public InputStream getInputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "read-folder.error", file ); throw new FileSystemException( message ); } if ( !file.exists() ) { final String message ...
1,101,279
public InputStream getInputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "read-folder.error", file ); throw new FileSystemException( message ); } if ( !file.exists() ) { final String message ...
public InputStream getInputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "read-folder.error", file ); throw new FileSystemException( message ); } if ( !file.exists() ) { final String message ...
1,101,280
public long getLastModifiedTime() throws FileSystemException { if( !file.exists() ) { final String message = REZ.getString( "get-last-modified-no-exist.error", file ); throw new FileSystemException( message ); } return file.doGetLastModifiedTime(); }
public long getLastModifiedTime() throws FileSystemException { if( !file.exists() ) { final String message = REZ.getString( "get-last-modified-no-exist.error", file ); throw new FileSystemException( message ); } return file.doGetLastModifiedTime(); }
1,101,281
public OutputStream getOutputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "write-folder.error", file ); throw new FileSystemException( message ); } if ( state != STATE_NONE ) { final String ...
public OutputStream getOutputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "write-folder.error", file ); throw new FileSystemException( message ); } if ( state != STATE_NONE ) { final String ...
1,101,282
public OutputStream getOutputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "write-folder.error", file ); throw new FileSystemException( message ); } if ( state != STATE_NONE ) { final String ...
public OutputStream getOutputStream() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "write-folder.error", file ); throw new FileSystemException( message ); } if ( state != STATE_NONE ) { final String ...
1,101,283
public long getSize() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "get-size-folder.error", file ); throw new FileSystemException( message ); } // Do some checking if ( !file.exists() ) { fina...
public long getSize() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "get-size-folder.error", file ); throw new FileSystemException( message ); } // Do some checking if ( !file.exists() ) { fina...
1,101,284
public long getSize() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "get-size-folder.error", file ); throw new FileSystemException( message ); } // Do some checking if ( !file.exists() ) { fina...
public long getSize() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "get-size-folder.error", file ); throw new FileSystemException( message ); } // Do some checking if ( !file.exists() ) { fina...
1,101,285
public long getSize() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "get-size-folder.error", file ); throw new FileSystemException( message ); } // Do some checking if ( !file.exists() ) { fina...
public long getSize() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "get-size-folder.error", file ); throw new FileSystemException( message ); } // Do some checking if ( !file.exists() ) { fina...
1,101,286
public long getSize() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "get-size-folder.error", file ); throw new FileSystemException( message ); } // Do some checking if ( !file.exists() ) { fina...
public long getSize() throws FileSystemException { if( file.isFolder() ) { final String message = REZ.getString( "get-size-folder.error", file ); throw new FileSystemException( message ); } // Do some checking if ( !file.exists() ) { fina...
1,101,287
public void setLastModifiedTime( long modTime ) throws FileSystemException { if( !file.exists() ) { final String message = REZ.getString( "set-last-modified-no-exist.error", file ); throw new FileSystemException( message ); } file.doSetLastModifiedTime( modTime )...
public void setLastModifiedTime( long modTime ) throws FileSystemException { if( !file.exists() ) { final String message = REZ.getString( "set-last-modified-no-exist.error", file ); throw new FileSystemException( message ); } file.doSetLastModifiedTime( modTime )...
1,101,288
public Connection connect(ConnectionParameters connectionParameters) { //TODO: Add support for output file encoding String urlStr = connectionParameters.getUrl(); String outEnc = connectionParameters.getProperty(OUTPUT_ENCODING); URL url; try { url = new URL(urlStr); ...
public Connection connect(ConnectionParameters connectionParameters) { //TODO: Add support for output file encoding String urlStr = connectionParameters.getUrl(); String outEnc = connectionParameters.getProperty(OUTPUT_ENCODING); URL url; try { url = new URL(connectionP...
1,101,289
public FileObject getBaseTestFolder(final FileSystemManager manager) throws Exception { final File testDir = AbstractVfsTestCase.getTestDirectory(); return manager.toFileObject(testDir); }
public FileObject getBaseTestFolder(final FileSystemManager manager) throws Exception { final File testDir = AbstractVfsTestCase.getTestDirectoryFile(); return manager.toFileObject(testDir); }
1,101,290
public FileObject findFile(final FileObject baseFile, final String uri, final FileSystemOptions fileSystemOptions) throws FileSystemException { try { final URL url = new URL(uri); final URL rootUrl = new URL(ur...
public FileObject findFile(final FileObject baseFile, final String uri, final FileSystemOptions fileSystemOptions) throws FileSystemException { try { StringBuffer buf = new StringBuffer(80); String scheme = UriParser.extr...
1,101,291
private static void addComplexWord(String complexWord, List complexWordList, List tokenList, Set complexWordSet) { for (int i = 0; i < tokenList.size(); i++) { List complexWordSizeList = new ArrayList(); for (int j = 0; complexWordSizeList.size() != complexWordList.size(); j++) { ...
private static void addComplexWord(String complexWord, List<String> complexWordElementList, List<String> tokenList, Set complexWordSet) { for (int i = 0; i < tokenList.size(); i++) { List complexWordSizeList = new ArrayList(); for (int j = 0; complexWordSizeList.size() != complexWordLis...
1,101,292
private static void addComplexWord(String complexWord, List complexWordList, List tokenList, Set complexWordSet) { for (int i = 0; i < tokenList.size(); i++) { List complexWordSizeList = new ArrayList(); for (int j = 0; complexWordSizeList.size() != complexWordList.size(); j++) { ...
private static void addComplexWord(String complexWord, List complexWordList, List tokenList, Set complexWordSet) { for (int i = 0; i < tokenList.size(); i++) { List complexWordSizeList = new ArrayList(); for (int j = 0; complexWordSizeList.size() != complexWordList.size(); j++) { ...
1,101,293
private static void addComplexWord(String complexWord, List complexWordList, List tokenList, Set complexWordSet) { for (int i = 0; i < tokenList.size(); i++) { List complexWordSizeList = new ArrayList(); for (int j = 0; complexWordSizeList.size() != complexWordList.size(); j++) { ...
private static void addComplexWord(String complexWord, List complexWordList, List tokenList, Set complexWordSet) { for (int i = 0; i < tokenList.size(); i++) { List complexWordSizeList = new ArrayList(); for (int j = 0; complexWordSizeList.size() != complexWordList.size(); j++) { ...
1,101,294
private static void addComplexWord(String complexWord, List complexWordList, List tokenList, Set complexWordSet) { for (int i = 0; i < tokenList.size(); i++) { List complexWordSizeList = new ArrayList(); for (int j = 0; complexWordSizeList.size() != complexWordList.size(); j++) { ...
private static void addComplexWord(String complexWord, List complexWordList, List tokenList, Set complexWordSet) { for (int i = 0; i < tokenList.size(); i++) { List complexWordSizeList = new ArrayList(); for (int j = 0; complexWordSizeList.size() != complexWordList.size(); j++) { ...
1,101,295
private static void addComplexWord(String complexWord, List complexWordList, List tokenList, Set complexWordSet) { for (int i = 0; i < tokenList.size(); i++) { List complexWordSizeList = new ArrayList(); for (int j = 0; complexWordSizeList.size() != complexWordList.size(); j++) { ...
private static void addComplexWord(String complexWord, List complexWordList, List tokenList, Set complexWordSet) { for (int i = 0; i < tokenList.size(); i++) { List complexWordSizeList = new ArrayList(); for (int j = 0; complexWordSizeList.size() != complexWordList.size(); j++) { ...
1,101,296
protected SmbFileObject( final String fileName, final FileName name, final SmbFileSystem fileSystem ) { super( name, fileSystem ); this.fileName = fileName; }
protected SmbFileObject( final String fileName, final FileName name, final SmbFileSystem fileSystem ) { super( name, fileSystem ); this.fileName = fileName; }
1,101,297
protected SmbFileObject( final String fileName, final FileName name, final SmbFileSystem fileSystem ) { super( name, fileSystem ); this.fileName = fileName; }
protected SmbFileObject( final String fileName, final FileName name, final SmbFileSystem fileSystem ) { super( name, fileSystem ); this.fileName = name.getURI(); }
1,101,298
public synchronized String format(final LogRecord record) { d.setTime(record.getMillis()); args[1] = record.getLevel().getLocalizedName(); args[2] = record.getMessage(); final String s = f.format(args, sb, null).toString(); sb.setLen...
public synchronized String format(final LogRecord record) { d.setTime(record.getMillis()); args[1] = record.getLevel().getLocalizedName(); args[2] = record.getMessage(); f.format(args, sb, null).toString(); final Throwable err = record.getThrown();...
1,101,299
protected void doAttach() throws Exception { if (file == null) { // Remove the "file:///" LocalFileName localFileName = (LocalFileName) getName(); String fileName = localFileName.getRootFile() + getName().getPathDecoded(); // fileName = UriParser.d...
protected void doAttach() throws Exception { if (file == null) { // Remove the "file:///" LocalFileName localFileName = (LocalFileName) getName(); String fileName = localFileName.getRootFile() + getName().getPathDecoded(); // fileName = UriParser.d...
1,101,301
private boolean addBeanDependency(BeanDefinition bean, HashSet dependencies) { if (bean.getBeanClassName().equals(OsgiServiceProxyFactoryBean.class.getName())) { PropertyValue service = bean.getPropertyValues().getPropertyValue (OsgiServiceProxyFactoryBean.INTERFACE_ATTRIBUTE); if (service == null) { throw...
private boolean addBeanDependency(BeanDefinition bean, HashSet dependencies) { if (bean.getBeanClassName().equals(OsgiServiceProxyFactoryBean.class.getName())) { PropertyValue service = bean.getPropertyValues().getPropertyValue (OsgiServiceProxyFactoryBean.INTERFACE_ATTRIBUTE); if (service == null) { throw...
1,101,303
protected void completeContextInitialization() { ClassLoader ccl = Thread.currentThread().getContextClassLoader(); BundleContext bc = LocalBundleContext.getContext(); try { Thread.currentThread().setContextClassLoader(savedCcl); LocalBundleContext.setContext(getBundleContext()); dependencies.clear(); getBun...
protected void completeContextInitialization() { ClassLoader ccl = Thread.currentThread().getContextClassLoader(); BundleContext bc = LocalBundleContext.getContext(); try { Thread.currentThread().setContextClassLoader(savedCcl); LocalBundleContext.setContext(getBundleContext()); dependencies.clear(); getBun...
1,101,304
protected HashSet findServiceDependencies() { // Get bean types, but do not instantiate lazy singletons or templates String[] beans = getBeanFactory().getBeanDefinitionNames(); HashSet dependencies = new HashSet(); for (int i = 0; i < beans.length; i++) { BeanDefinition bean = getBeanFactory().getBeanDefinition(...
protected void findServiceDependencies() { // Get bean types, but do not instantiate lazy singletons or templates String[] beans = getBeanFactory().getBeanDefinitionNames(); HashSet dependencies = new HashSet(); for (int i = 0; i < beans.length; i++) { BeanDefinition bean = getBeanFactory().getBeanDefinition(bea...
1,101,305
protected HashSet findServiceDependencies() { // Get bean types, but do not instantiate lazy singletons or templates String[] beans = getBeanFactory().getBeanDefinitionNames(); HashSet dependencies = new HashSet(); for (int i = 0; i < beans.length; i++) { BeanDefinition bean = getBeanFactory().getBeanDefinition(...
protected HashSet findServiceDependencies() { // Get bean types, but do not instantiate lazy singletons or templates String[] beans = getBeanFactory().getBeanDefinitionNames(); HashSet d = new HashSet(); for (int i = 0; i < beans.length; i++) { BeanDefinition bean = getBeanFactory().getBeanDefinition(beans[i]); ...
1,101,306
protected HashSet findServiceDependencies() { // Get bean types, but do not instantiate lazy singletons or templates String[] beans = getBeanFactory().getBeanDefinitionNames(); HashSet dependencies = new HashSet(); for (int i = 0; i < beans.length; i++) { BeanDefinition bean = getBeanFactory().getBeanDefinition(...
protected HashSet findServiceDependencies() { // Get bean types, but do not instantiate lazy singletons or templates String[] beans = getBeanFactory().getBeanDefinitionNames(); HashSet dependencies = new HashSet(); for (int i = 0; i < beans.length; i++) { BeanDefinition bean = getBeanFactory().getBeanDefinition(...
1,101,307
protected HashSet findServiceDependencies() { // Get bean types, but do not instantiate lazy singletons or templates String[] beans = getBeanFactory().getBeanDefinitionNames(); HashSet dependencies = new HashSet(); for (int i = 0; i < beans.length; i++) { BeanDefinition bean = getBeanFactory().getBeanDefinition(...
protected HashSet findServiceDependencies() { // Get bean types, but do not instantiate lazy singletons or templates String[] beans = getBeanFactory().getBeanDefinitionNames(); HashSet dependencies = new HashSet(); for (int i = 0; i < beans.length; i++) { BeanDefinition bean = getBeanFactory().getBeanDefinition(...
1,101,308
protected HashSet findServiceDependencies() { // Get bean types, but do not instantiate lazy singletons or templates String[] beans = getBeanFactory().getBeanDefinitionNames(); HashSet dependencies = new HashSet(); for (int i = 0; i < beans.length; i++) { BeanDefinition bean = getBeanFactory().getBeanDefinition(...
protected HashSet findServiceDependencies() { // Get bean types, but do not instantiate lazy singletons or templates String[] beans = getBeanFactory().getBeanDefinitionNames(); HashSet dependencies = new HashSet(); for (int i = 0; i < beans.length; i++) { BeanDefinition bean = getBeanFactory().getBeanDefinition(...
1,101,309