rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
setWasNullColumnIndex(columnIndex); | public short getShort(int columnIndex) throws SQLException { if ((getXsqlvar(columnIndex).sqltype & ~1) != GDS.SQL_SHORT) { throw new SQLException("Wrong type for column " + columnIndex + "type should be" + getXsqlvar(columnIndex).sqltype); } if (row[columnIndex - 1] == null) { ... | |
setWasNullColumnIndex(columnIndex); if (wasNull()) { return null; } | public String getString(int columnIndex) throws SQLException { if (((getXsqlvar(columnIndex).sqltype & ~1) != GDS.SQL_TEXT) &&((getXsqlvar(columnIndex).sqltype & ~1) != GDS.SQL_VARYING)) { throw new SQLException("Wrong type for column " + columnIndex + "type should be" + getXsqlvar(co... | |
setWasNullColumnIndex(columnIndex); | public java.sql.Time getTime(int columnIndex) throws SQLException { if ((getXsqlvar(columnIndex).sqltype & ~1) != GDS.SQL_TYPE_TIME) { throw new SQLException("Wrong type for column " + columnIndex + "type should be" + getXsqlvar(columnIndex).sqltype); } if (row[columnIndex - 1] == n... | |
setWasNullColumnIndex(columnIndex); | public java.sql.Timestamp getTimestamp(int columnIndex) throws SQLException { if ((getXsqlvar(columnIndex).sqltype & ~1) != GDS.SQL_TIMESTAMP) { throw new SQLException("Wrong type for column " + columnIndex + "type should be" + getXsqlvar(columnIndex).sqltype); } if (row[columnIndex... | |
throw new SQLException("Not yet implemented"); | if (wasNullColumnIndex == -1) { throw new SQLException("look at a column before testing null!"); } if (row == null) { throw new SQLException("No row available for wasNull!"); } return row[wasNullColumnIndex - 1] == null; | public boolean wasNull() throws SQLException { throw new SQLException("Not yet implemented"); } |
public void fetch(isc_stmt_handle stmt) throws GDSException { mcf.gds.isc_dsql_fetch(stmt, GDS.SQLDA_VERSION1, stmt.getOutSqlda()); | public void fetch(isc_stmt_handle stmt, int fetchSize) throws GDSException { mcf.gds.isc_dsql_fetch(stmt, GDS.SQLDA_VERSION1, stmt.getOutSqlda(), fetchSize); | public void fetch(isc_stmt_handle stmt) throws GDSException { mcf.gds.isc_dsql_fetch(stmt, GDS.SQLDA_VERSION1, stmt.getOutSqlda()); } |
return field.decodeTime(getTime(),cal); | return field.decodeTime(getTime(),cal, isInvertTimeZone()); | public Time getTime(Calendar cal) throws SQLException { if (rs.row[numCol]==null) return TIME_NULL_VALUE; return field.decodeTime(getTime(),cal); } |
setTime(field.encodeTime(value,cal)); | setTime(field.encodeTime(value,cal, isInvertTimeZone())); | public void setTime(Time value, Calendar cal) throws SQLException { if (value == TIME_NULL_VALUE) { setNull(); return; } setTime(field.encodeTime(value,cal)); } |
public Date getDate(Calendar cal) throws SQLException { | public Date getDate() throws SQLException { | public Date getDate(Calendar cal) throws SQLException { throw (SQLException)createException( DATE_CONVERSION_ERROR).fillInStackTrace(); } |
public Timestamp decodeTimestamp(byte[] byte_int){ if (byte_int.length != 8) throw new IllegalArgumentException("Bad parameter to decode"); byte[] date = new byte[4]; byte[] time = new byte[4]; System.arraycopy(byte_int, 0, date, 0, 4); System.arraycopy(byte_int, 4, time, 0, 4); datetime d = new datetime(date,t... | public java.sql.Timestamp decodeTimestamp(Timestamp value, Calendar cal) { return decodeTimestamp(value, cal, false); | public Timestamp decodeTimestamp(byte[] byte_int){ if (byte_int.length != 8) throw new IllegalArgumentException("Bad parameter to decode"); // we have to extract time and date correctly // see encodeTimestamp(...) for explanations byte[] date = new byte[4]; byte... |
public Time getTime(Calendar cal) throws SQLException { | public Time getTime() throws SQLException { | public Time getTime(Calendar cal) throws SQLException { throw (SQLException)createException( TIME_CONVERSION_ERROR).fillInStackTrace(); } |
public Timestamp getTimestamp(Calendar cal) throws SQLException { | public Timestamp getTimestamp() throws SQLException { | public Timestamp getTimestamp(Calendar cal) throws SQLException { throw (SQLException)createException( TIMESTAMP_CONVERSION_ERROR).fillInStackTrace(); } |
public Timestamp encodeTimestamp(java.sql.Timestamp value, Calendar cal, boolean invertTimeZone){ if (cal == null) { return value; } else { long time = value.getTime() + (invertTimeZone ? -1 : 1) * (cal.getTimeZone().getRawOffset() - Calendar.getInstance().getTimeZone().getRawOffset()); return new Timestamp(time); } | public Timestamp encodeTimestamp(java.sql.Timestamp value, Calendar cal){ return encodeTimestamp(value, cal, false); | public Timestamp encodeTimestamp(java.sql.Timestamp value, Calendar cal, boolean invertTimeZone){ if (cal == null) { return value; } else { long time = value.getTime() + (invertTimeZone ? -1 : 1) * (cal.getTimeZone().getRawOffset() - Calenda... |
Tag parent = getParent(); if ( ( parent == null ) || ! ( parent instanceof StateTag ) ) | if ( this.process == null ) | public void doTag(XMLOutput output) throws Exception { Tag parent = getParent(); if ( ( parent == null ) || ! ( parent instanceof StateTag ) ) { throw new JellyException( "Parent is not a state" ); } StateTag stateTag = (StateTag) parent; ... |
throw new JellyException( "Parent is not a state" ); | throw new MissingAttributeException( "process" ); | public void doTag(XMLOutput output) throws Exception { Tag parent = getParent(); if ( ( parent == null ) || ! ( parent instanceof StateTag ) ) { throw new JellyException( "Parent is not a state" ); } StateTag stateTag = (StateTag) parent; ... |
StateTag stateTag = (StateTag) parent; | ProcessContext context = getProcessContext(); ProcessEngine engine = getProcessEngine(); | public void doTag(XMLOutput output) throws Exception { Tag parent = getParent(); if ( ( parent == null ) || ! ( parent instanceof StateTag ) ) { throw new JellyException( "Parent is not a state" ); } StateTag stateTag = (StateTag) parent; ... |
State state = stateTag.getState(); if ( state.getActivity() != null && ! ( state.getActivity() instanceof NoOpActivity ) ) { throw new JellyException( "Activity already defined for state \"" + state.getName() + "\"" ); } if ( this.name == null ) { throw new MissingAttributeException( "name" ); } final String process... | engine.spawn( getProcess(), context ); | public void doTag(XMLOutput output) throws Exception { Tag parent = getParent(); if ( ( parent == null ) || ! ( parent instanceof StateTag ) ) { throw new JellyException( "Parent is not a state" ); } StateTag stateTag = (StateTag) parent; ... |
protected Process getProcess() throws Exception | public Process getProcess() throws Exception | protected Process getProcess() throws Exception { return getProcess( this.name ); } |
return getProcess( this.name ); | return this.process; | protected Process getProcess() throws Exception { return getProcess( this.name ); } |
public ProcessContext spawn(Process process, ProcessContext parent) throws InvalidMotionException | public ProcessContext spawn(Process process) throws InvalidMotionException | public ProcessContext spawn(Process process, ProcessContext parent) throws InvalidMotionException { ProcessContext context = new ProcessContext( this, process, parent ); ... |
process, parent ); | process ); | public ProcessContext spawn(Process process, ProcessContext parent) throws InvalidMotionException { ProcessContext context = new ProcessContext( this, process, parent ); ... |
addToCheckQueue( context ); | checkTransitions( context ); | public ProcessContext spawn(Process process, ProcessContext parent) throws InvalidMotionException { ProcessContext context = new ProcessContext( this, process, parent ); ... |
System.arraycopy(blobData, (int)pos, result, 0, length); | System.arraycopy(blobData, (int)pos - 1, result, 0, length); | public byte[] getBytes(long pos, int length) throws SQLException { if (blobData == null) return BYTES_NULL_VALUE; byte[] result = new byte[length]; System.arraycopy(blobData, (int)pos, result, 0, length); return result; } |
BINARY_STREAM_CONVERSION_ERROR); | BINARY_STREAM_CONVERSION_ERROR).fillInStackTrace(); | InputStream getBinaryStream() throws SQLException { // getBinaryStream() is not defined for BLOB types, only for BINARY if (field.sqlsubtype < 0) throw (SQLException)createException( BINARY_STREAM_CONVERSION_ERROR); Blob blob = getBlob(); if (blob == BLO... |
Blob blob = getBlob(); | byte[] getBytes() throws SQLException { // getBytes() is not defined for BLOB types, only for BINARY if (field.sqlsubtype < 0) throw (SQLException)createException( BYTES_CONVERSION_ERROR); Blob blob = getBlob(); if (blob == BLOB_NULL_VALUE) re... | |
if (blob == BLOB_NULL_VALUE) return BYTES_NULL_VALUE; InputStream in = blob.getBinaryStream(); if (in == STREAM_NULL_VALUE) return BYTES_NULL_VALUE; ByteArrayOutputStream bout = new ByteArrayOutputStream(); byte[] buff = new byte[BUFF_SIZE]; int counter = 0; try { while((counter = in.read(buff)) != -1) { bout.writ... | return getBytesInternal(); | byte[] getBytes() throws SQLException { // getBytes() is not defined for BLOB types, only for BINARY if (field.sqlsubtype < 0) throw (SQLException)createException( BYTES_CONVERSION_ERROR); Blob blob = getBlob(); if (blob == BLOB_NULL_VALUE) re... |
return new FBCachedBlob(getBytes()); | return new FBCachedBlob(getBytesInternal()); | Object getCachedObject() throws SQLException { if (isNull()) return BLOB_NULL_VALUE; return new FBCachedBlob(getBytes()); } |
STRING_CONVERSION_ERROR); | STRING_CONVERSION_ERROR).fillInStackTrace(); | String getString() throws SQLException { // getString() is not defined for BLOB fields, only for BINARY if (field.sqlsubtype < 0) throw (SQLException)createException( STRING_CONVERSION_ERROR); Blob blob = getBlob(); if (blob == BLOB_NULL_VALUE) return... |
os.flush(); | public void copyStream(InputStream inputStream, int length) throws SQLException { OutputStream os = setBinaryStream(0); byte[] buffer = new byte[bufferlength]; int chunk; try { while (length >0) { chunk =inputStream.read(buffer, 0, ((length<bufferlength) ? lengt... | |
byte[] getBytes() throws SQLException { throw (SQLException)createException( BYTES_CONVERSION_ERROR).fillInStackTrace(); | public static byte[] getBytes(String str, String iscEncoding) { String javaEncoding = null; if (iscEncoding != null && !iscEncoding.equalsIgnoreCase("NONE")) javaEncoding = FBConnectionHelper.getJavaEncoding(iscEncoding); if (javaEncoding == null) return str.getBytes(); try { return str.getBytes(javaEncoding); } cat... | byte[] getBytes() throws SQLException { throw (SQLException)createException( BYTES_CONVERSION_ERROR).fillInStackTrace(); } |
public void setCurrentTrHandle(AbstractIscTrHandle currentTr) { | public synchronized void setCurrentTrHandle(AbstractIscTrHandle currentTr) { | public void setCurrentTrHandle(AbstractIscTrHandle currentTr) { this.currentTr = currentTr; } |
notify(); | public void setCurrentTrHandle(AbstractIscTrHandle currentTr) { this.currentTr = currentTr; } | |
public GDSException(String message) { super(message); this.type = ISCConstants.isc_arg_string; | public GDSException(int type, int intParam) { this.type = type; this.intParam = intParam; | public GDSException(String message) { super(message); this.type = ISCConstants.isc_arg_string; } |
public static SVNErrorMessage create(SVNErrorCode code, String message, Object object) { return create(code, message, object, TYPE_ERROR); | public static SVNErrorMessage create(SVNErrorCode code) { return create(code, "", TYPE_ERROR); | public static SVNErrorMessage create(SVNErrorCode code, String message, Object object) { return create(code, message, object, TYPE_ERROR); } |
SVNDebugLog.log(message); | SVNDebugLog.logError(message); | public static void error(String message) throws SVNException { if (message == null) { message = "svn: unknow error"; } else if (!message.startsWith("svn: ")) { message = "svn: " + message; } SVNDebugLog.log(message); throw new SVNException(message); } |
public static String toString(long i) { return Long.toString(i); | public static String toString(boolean b) { return Boolean.toString(b); | public static String toString(long i) { return Long.toString(i); } |
public SVNEntry getEntry(String name, boolean hidden) throws SVNException { | public SVNEntry2 getEntry(String name, boolean hidden) throws SVNException { | public SVNEntry getEntry(String name, boolean hidden) throws SVNException { Map entries = loadEntries(); if (entries != null && entries.containsKey(name)) { SVNEntry entry = (SVNEntry)entries.get(name); if (!hidden && entry.isHidden()) { return null; } ... |
SVNEntry entry = (SVNEntry)entries.get(name); | SVNEntry2 entry = (SVNEntry2)entries.get(name); | public SVNEntry getEntry(String name, boolean hidden) throws SVNException { Map entries = loadEntries(); if (entries != null && entries.containsKey(name)) { SVNEntry entry = (SVNEntry)entries.get(name); if (!hidden && entry.isHidden()) { return null; } ... |
if ("".equals(f)) { return s; } else if ("".equals(s)) { return f; } | public static String append(String f, String s) { f = f == null ? "" : f; s = s == null ? "" : s; if ("".equals(f)) { return s; } else if ("".equals(s)) { return f; } StringBuffer result = new StringBuffer(f.length() + s.length()); for(int i = 0... | |
if (i == 0 && ch != '/') { | if (i == 0 && ch != '/' && result.length() > 0) { | public static String append(String f, String s) { f = f == null ? "" : f; s = s == null ? "" : s; if ("".equals(f)) { return s; } else if ("".equals(s)) { return f; } StringBuffer result = new StringBuffer(f.length() + s.length()); for(int i = 0... |
} if (i + 1 == s.length() && ch == '/') { break; | public static String append(String f, String s) { f = f == null ? "" : f; s = s == null ? "" : s; if ("".equals(f)) { return s; } else if ("".equals(s)) { return f; } StringBuffer result = new StringBuffer(f.length() + s.length()); for(int i = 0... | |
public static String computeChecksum(File file) throws SVNException { if (file == null || !file.exists() || file.isDirectory()) { | public static String computeChecksum(String line) { if (line == null) { | public static String computeChecksum(File file) throws SVNException { if (file == null || !file.exists() || file.isDirectory()) { return null; } MessageDigest digest; try { digest = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { ... |
SVNErrorManager.error("svn: MD5 algorithm implementation not found"); | public static String computeChecksum(File file) throws SVNException { if (file == null || !file.exists() || file.isDirectory()) { return null; } MessageDigest digest; try { digest = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { ... | |
InputStream is = openFileForReading(file); try { while (true) { int b = is.read(); if (b < 0) { break; } digest.update((byte) (b & 0xFF)); } } catch (IOException e) { SVNErrorManager.error("svn: I/O error while computing checksum for '" + file + "'"); } finally { closeFile(is); | if (digest == null) { return null; | public static String computeChecksum(File file) throws SVNException { if (file == null || !file.exists() || file.isDirectory()) { return null; } MessageDigest digest; try { digest = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { ... |
if (adminArea == null && !myAdminAreas.containsKey(path)) { | if (adminArea == null) { | public SVNAdminArea retrieve(File path) throws SVNException { SVNAdminArea adminArea = getAdminArea(path); if (adminArea == null && !myAdminAreas.containsKey(path)) { SVNEntry subEntry = null; try { SVNAdminArea dirAdminArea = getAdminArea(path.getParentFile()); ... |
SVNEntry subEntry = null; | SVNEntry2 subEntry = null; | public SVNAdminArea retrieve(File path) throws SVNException { SVNAdminArea adminArea = getAdminArea(path); if (adminArea == null) { SVNEntry subEntry = null; try { SVNAdminArea dirAdminArea = getAdminArea(path.getParentFile()); if (dirAdminArea != nu... |
SVNEntry entry = (SVNEntry) iterator.next(); | SVNEntry2 entry = (SVNEntry2) iterator.next(); | public Iterator entries(boolean hidden) throws SVNException { Map entries = loadEntries(); if (entries == null) { return Collections.EMPTY_LIST.iterator(); } Collection copy = new LinkedList(entries.values()); if (!hidden) { for (Iterator iterator = copy.iter... |
public Event(int type, Object arg) { | public Event(int type) { | public Event(int type, Object arg) { this.type=type; this.arg=arg; } |
this.arg=arg; | public Event(int type, Object arg) { this.type=type; this.arg=arg; } | |
if(down_prot != null) down_prot.receiveDownEvent(evt); else if(log.isErrorEnabled()) log.error("no lower layer available"); } | if (down_prot != null) { down_prot.receiveDownEvent(evt); } else if (log.isErrorEnabled()) { log.error("no lower layer available"); } } | public void passDown(Event evt) { if(observer != null) { // call debugger hook (if installed) if(observer.passDown(evt) == false) { // false means don't pass down (=discard) event return; } } if(down_prot != null) down_prot.re... |
if(up_prot != null) { up_prot.receiveUpEvent(evt); } else if(log.isErrorEnabled()) log.error("no upper layer available"); } | if (up_prot != null) { up_prot.receiveUpEvent(evt); } else if (log.isErrorEnabled()) { log.error("no upper layer available"); } } | public void passUp(Event evt) { if(observer != null) { // call debugger hook (if installed) if(observer.passUp(evt) == false) { // false means don't pass up (=discard) event return; } } if(up_prot != null) { up_prot.receiveUpEve... |
this.NUM_THREADS=new Integer(System.getProperty("scheduler.max.threads","128")).intValue(); | this.NUM_THREADS=Integer.parseInt(System.getProperty("scheduler.max.threads", "128")); | public Scheduler() { // PropertyPermission not granted if running in an untrusted environment with JNLP. try { this.NUM_THREADS=new Integer(System.getProperty("scheduler.max.threads","128")).intValue(); } catch (SecurityException ex){ //The default value specified above ... |
SVNEntry entry = myAdminArea.getEntry(myEntryName, true); | SVNEntry2 entry = myAdminArea.getEntry(myEntryName, true); | public String getPropertyValue(String name) throws SVNException { SVNEntry entry = myAdminArea.getEntry(myEntryName, true); String[] cachableProps = entry.getCachableProperties(); if (cachableProps != null && getIndex(cachableProps, name) >= 0) { String[] presentProps = entry.getPre... |
public static Map detectChanged(File reposRootDir, FSRevisionNodePool revNodesPool, FSRoot root)throws SVNException{ Map returnChanged = new HashMap(); Map changes = FSReader.getFSpathChanged(reposRootDir, root); | public static Map detectChanged(File reposRootDir, FSRevisionNodePool revNodesPool, FSRoot root) throws SVNException { Map changedPaths = new HashMap(); Map changes = getChangedPaths(reposRootDir, root); | public static Map detectChanged(File reposRootDir, FSRevisionNodePool revNodesPool, FSRoot root)throws SVNException{ Map returnChanged = new HashMap(); Map changes = FSReader.getFSpathChanged(reposRootDir, root); if(changes.size() == 0){ return changes; } Set ha... |
Set hashKeys = changes.keySet(); Iterator chgIter = hashKeys.iterator(); while(chgIter.hasNext()){ char action; String hashPathKey = (String)chgIter.next(); FSPathChange change = (FSPathChange)changes.get(hashPathKey); String path = hashPathKey; | for(Iterator paths = changes.keySet().iterator(); paths.hasNext();){ String changedPath = (String)paths.next(); FSPathChange change = (FSPathChange)changes.get(changedPath); | public static Map detectChanged(File reposRootDir, FSRevisionNodePool revNodesPool, FSRoot root)throws SVNException{ Map returnChanged = new HashMap(); Map changes = FSReader.getFSpathChanged(reposRootDir, root); if(changes.size() == 0){ return changes; } Set ha... |
}else if(change.getChangeKind() == FSPathChangeKind.FS_PATH_CHANGE_ADD){ action = 'A'; }else if(change.getChangeKind() == FSPathChangeKind.FS_PATH_CHANGE_DELETE){ action = 'D'; }else if(change.getChangeKind() == FSPathChangeKind.FS_PATH_CHANGE_REPLACE){ action = 'R'; }else{ action = 'M'; | public static Map detectChanged(File reposRootDir, FSRevisionNodePool revNodesPool, FSRoot root)throws SVNException{ Map returnChanged = new HashMap(); Map changes = FSReader.getFSpathChanged(reposRootDir, root); if(changes.size() == 0){ return changes; } Set ha... | |
FSLogChangedPath itemCopyfrom = new FSLogChangedPath(action, new SVNLocationEntry(FSConstants.SVN_INVALID_REVNUM, null)); if(action == 'A' || action == 'R'){ SVNLocationEntry copyfromEntry = FSReader.copiedFrom(reposRootDir, root.getRootRevisionNode(), path, revNodesPool); | char action = change.getChangeKind().toString().toUpperCase().charAt(0); long copyfromRevision = FSConstants.SVN_INVALID_REVNUM; String copyfromPath = null; if(change.getChangeKind() == FSPathChangeKind.FS_PATH_CHANGE_ADD || change.getChangeKind() == FSPathChangeKind.FS_PATH_CHANGE_REPLACE){ SVNLocationEntry copyfromEn... | public static Map detectChanged(File reposRootDir, FSRevisionNodePool revNodesPool, FSRoot root)throws SVNException{ Map returnChanged = new HashMap(); Map changes = FSReader.getFSpathChanged(reposRootDir, root); if(changes.size() == 0){ return changes; } Set ha... |
itemCopyfrom = new FSLogChangedPath(action, copyfromEntry); | copyfromPath = copyfromEntry.getPath(); copyfromRevision = copyfromEntry.getRevision(); | public static Map detectChanged(File reposRootDir, FSRevisionNodePool revNodesPool, FSRoot root)throws SVNException{ Map returnChanged = new HashMap(); Map changes = FSReader.getFSpathChanged(reposRootDir, root); if(changes.size() == 0){ return changes; } Set ha... |
returnChanged.put(path, itemCopyfrom); | changedPaths.put(changedPath, new SVNLogEntryPath(changedPath, action, copyfromPath, copyfromRevision)); | public static Map detectChanged(File reposRootDir, FSRevisionNodePool revNodesPool, FSRoot root)throws SVNException{ Map returnChanged = new HashMap(); Map changes = FSReader.getFSpathChanged(reposRootDir, root); if(changes.size() == 0){ return changes; } Set ha... |
return returnChanged; | return changedPaths; | public static Map detectChanged(File reposRootDir, FSRevisionNodePool revNodesPool, FSRoot root)throws SVNException{ Map returnChanged = new HashMap(); Map changes = FSReader.getFSpathChanged(reposRootDir, root); if(changes.size() == 0){ return changes; } Set ha... |
public FSRevisionNode getRevisionNode(FSRevisionNode root, String path, File reposRootDir) throws SVNException{ if(reposRootDir == null || path == null || "".equals(path) || root == null){ | public FSRevisionNode getRevisionNode(long revision, String path, File reposRootDir) throws SVNException{ if(reposRootDir == null || path == null || "".equals(path) || FSRepository.isInvalidRevision(revision)){ | public FSRevisionNode getRevisionNode(FSRevisionNode root, String path, File reposRootDir) throws SVNException{ if(reposRootDir == null || path == null || "".equals(path) || root == null){ return null; } return getRevisionNode(root.getId().getRevision(), path, reposRootDir); } |
return getRevisionNode(root.getId().getRevision(), path, reposRootDir); | FSRevisionNode revNode = fetchRevisionNode(revision, path); if(revNode == null){ FSRevisionNode root = getRootRevisionNode(revision, reposRootDir); revNode = openPath(FSRoot.createRevisionRoot(revision, root), path, false, null, reposRootDir, false).getRevNode(); if(revNode != null){ cacheRevisionNode(revision, path, ... | public FSRevisionNode getRevisionNode(FSRevisionNode root, String path, File reposRootDir) throws SVNException{ if(reposRootDir == null || path == null || "".equals(path) || root == null){ return null; } return getRevisionNode(root.getId().getRevision(), path, reposRootDir); } |
public SVNErrorMessage wrap(String parentMessage, Object relatedObject){ SVNErrorMessage parentError = SVNErrorMessage.create(this.getErrorCode(), parentMessage, relatedObject); | public SVNErrorMessage wrap(String parentMessage){ SVNErrorMessage parentError = SVNErrorMessage.create(this.getErrorCode(), parentMessage); | public SVNErrorMessage wrap(String parentMessage, Object relatedObject){ SVNErrorMessage parentError = SVNErrorMessage.create(this.getErrorCode(), parentMessage, relatedObject); parentError.setChildErrorMessage(this); return parentError; } |
public static FSNodeHistory getNodeHistory(File reposRootDir, FSRevisionNode root, String path) throws SVNException{ FSRoot rootNode = FSRoot.createRevisionRoot(root.getId().getRevision(), root); if(rootNode.isTxnRoot()){ | public static FSNodeHistory getNodeHistory(File reposRootDir, FSRoot root, String path) throws SVNException{ if(root.isTxnRoot()){ | public static FSNodeHistory getNodeHistory(File reposRootDir, FSRevisionNode root, String path) throws SVNException{ FSRoot rootNode = FSRoot.createRevisionRoot(root.getId().getRevision(), root); if(rootNode.isTxnRoot()){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_REVI... |
SVNNodeKind kind = FSReader.checkNodeKind(path, rootNode.getRootRevisionNode(), reposRootDir); | SVNNodeKind kind = FSReader.checkNodeKind(path, root.getRootRevisionNode(), reposRootDir); | public static FSNodeHistory getNodeHistory(File reposRootDir, FSRevisionNode root, String path) throws SVNException{ FSRoot rootNode = FSRoot.createRevisionRoot(root.getId().getRevision(), root); if(rootNode.isTxnRoot()){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_REVI... |
SVNErrorManager.error(FSErrors.errorNotFound(rootNode, path)); | SVNErrorManager.error(FSErrors.errorNotFound(root, path)); | public static FSNodeHistory getNodeHistory(File reposRootDir, FSRevisionNode root, String path) throws SVNException{ FSRoot rootNode = FSRoot.createRevisionRoot(root.getId().getRevision(), root); if(rootNode.isTxnRoot()){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_REVI... |
return new FSNodeHistory(new SVNLocationEntry(rootNode.getRootRevisionNode().getId().getRevision(), path), | return new FSNodeHistory(new SVNLocationEntry(root.getRevision(), SVNPathUtil.canonicalizeAbsPath(path)), | public static FSNodeHistory getNodeHistory(File reposRootDir, FSRevisionNode root, String path) throws SVNException{ FSRoot rootNode = FSRoot.createRevisionRoot(root.getId().getRevision(), root); if(rootNode.isTxnRoot()){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.FS_NOT_REVI... |
if(isInteresting == false){ return new FSNodeHistory(new SVNLocationEntry(historyEntry.getRevision(), "/"), true, | if(!isInteresting){ return new FSNodeHistory(new SVNLocationEntry(historyEntry.getRevision(), "/"), true, | public FSNodeHistory fsHistoryPrev(File reposRootDir, boolean crossCopies, FSRevisionNodePool revNodesPool)throws SVNException{ //if("/".compareTo(hist.getHistoryEntry().getPath()) == 0){ if("/".equals(historyEntry.getPath())){ //if(hist.getInterest() == false){ if(isInteresting == false){ ... |
if(prevHist.getInterest() == true){ | if(prevHist.isInteresting){ | public FSNodeHistory fsHistoryPrev(File reposRootDir, boolean crossCopies, FSRevisionNodePool revNodesPool)throws SVNException{ //if("/".compareTo(hist.getHistoryEntry().getPath()) == 0){ if("/".equals(historyEntry.getPath())){ //if(hist.getInterest() == false){ if(isInteresting == false){ ... |
public static boolean checkAncestryOfPegPath(File reposRootDir, String fsPath, long pegRev, long futureRev, FSRevisionNodePool revNodesPool)throws SVNException{ fsPath = fsPath == null ? new String("") : fsPath; long youngestRev = FSReader.getYoungestRevision(reposRootDir); if(FSRepository.isInvalidRevision(pegRev) || ... | public static boolean checkAncestryOfPegPath(File reposRootDir, String fsPath, long pegRev, long futureRev, FSRevisionNodePool revNodesPool) throws SVNException { FSRoot root = FSRoot.createRevisionRoot(futureRev, revNodesPool.getRootRevisionNode(futureRev, reposRootDir)); FSNodeHistory history = getNodeHistory(reposR... | public static boolean checkAncestryOfPegPath(File reposRootDir, String fsPath, long pegRev, long futureRev, FSRevisionNodePool revNodesPool)throws SVNException{ fsPath = fsPath == null ? new String("") : fsPath; long youngestRev = FSReader.getYoungestRevision(reposRootDir); if(FSRepository.isIn... |
fsPath = new String(currentHistory.getPath()); | fsPath = currentHistory.getPath(); | public static boolean checkAncestryOfPegPath(File reposRootDir, String fsPath, long pegRev, long futureRev, FSRevisionNodePool revNodesPool)throws SVNException{ fsPath = fsPath == null ? new String("") : fsPath; long youngestRev = FSReader.getYoungestRevision(reposRootDir); if(FSRepository.isIn... |
return (history != null && (fsPath.compareTo(currentHistory.getPath()) == 0)); | if(fsPath == null){ SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, "FATAL error occurred while checking ancestry of peg path"); SVNErrorManager.error(err); } return (history != null && (fsPath.equals(currentHistory.getPath()))); | public static boolean checkAncestryOfPegPath(File reposRootDir, String fsPath, long pegRev, long futureRev, FSRevisionNodePool revNodesPool)throws SVNException{ fsPath = fsPath == null ? new String("") : fsPath; long youngestRev = FSReader.getYoungestRevision(reposRootDir); if(FSRepository.isIn... |
try { if (!localTransaction.inTransaction()) localTransaction.begin(); } catch(ResourceException ex) { throw new FBSQLException(ex); } | ensureTransaction(); | public void executionStarted(AbstractStatement stmt) throws SQLException { try { if (!localTransaction.inTransaction()) localTransaction.begin(); } catch(ResourceException ex) { throw new FBSQLException(ex); } } |
mc.end(xid, XAResource.TMNOFLAGS); | mc.end(xid, XAResource.TMSUCCESS); | public void commit() throws ResourceException { if (xid == null) { throw new ResourceException("no local transaction active: can't commit"); } synchronized(mc) { try { mc.end(xid, XAResource.TMNOFLAGS); //FBManagedConnection is its own XARes... |
public FBSQLException(ResourceException ex) { super(ex.getMessage(), ex.getErrorCode() != null ? ex.getErrorCode() : SQL_STATE_GENERAL_ERROR); if (ex instanceof FBResourceException) { FBResourceException rex = (FBResourceException)ex; if (rex.getLinkedException() != null) original = rex.getLinkedException(); else o... | public FBSQLException(Exception ex) { super(ex.getMessage(), SQL_STATE_GENERAL_ERROR); original = ex; message = "Exception. " + ex.getMessage(); | public FBSQLException(ResourceException ex) { super(ex.getMessage(), ex.getErrorCode() != null ? ex.getErrorCode() : SQL_STATE_GENERAL_ERROR); // try to unwrap wrapped exception if (ex instanceof FBResourceException) { ... |
mc.end(xid, XAResource.TMNOFLAGS); | mc.end(xid, XAResource.TMSUCCESS); | public void rollback() throws ResourceException { if (xid == null) { throw new ResourceException("no local transaction active: can't rollback"); } synchronized(mc) { try { mc.end(xid, XAResource.TMNOFLAGS); //??? on flags --FBManagedConnectio... |
String base = ConfigurationManager.getProperty("url.base"); | String base = ConfigurationManager.getProperty("dspace.url"); | private static void sendEmail(String email, boolean isRegister, TableRow rd) throws MessagingException, IOException { String base = ConfigurationManager.getProperty("url.base"); // Note change from "key=" to "token=" S... |
rd.getIntColumn("id") + | rd.getIntColumn("registrationdata_id") + | protected static TableRow sendInfo(Context context, String email, boolean isRegister, boolean send) throws SQLException, IOException, MessagingException, AuthorizeException { EPerson ep... |
fbManager.setType(getGdsType().toString()); | protected void setUp() throws Exception { try { fbManager = createFBManager(); fbManager.setServer(DB_SERVER_URL); fbManager.setPort(DB_SERVER_PORT); fbManager.start(); fbManager.createDatabase(DB_PATH + "/" + DB_NAME, DB_USER, DB_PASSW... | |
Method[] m = superclass.getDeclaredMethods(); methods.add(m); size += m.length; superclass = superclass.getSuperclass(); | try { Method[] m = superclass.getDeclaredMethods(); methods.add(m); size += m.length; superclass = superclass.getSuperclass(); } catch(SecurityException e) { if(log.isWarnEnabled()) log.warn("unable to enumerate methods of superclass "+superclass+" of class "+target); superclass=null; } | Method[] getAllMethods(Class target) { Class superclass = target; List methods = new ArrayList(); int size = 0; while(superclass != null) { Method[] m = superclass.getDeclaredMethods(); methods.add(m); size += m.length; superclass = superclass.... |
System.err.println( "LOCATION: " + this.location ); | public void testExitState_Invalid_NoProcess() { try { this.location.exitState( this.state1 ); fail( "Should have thrown InvalidMotionException" ); } catch (InvalidMotionException e) { // expected and correct } } | |
myCurrentDate = TimeUtil.parseDate(fileRevision.getProperties().get(SVNRevisionProperty.DATE).toString()); | myCurrentDate = SVNTimeUtil.parseDate(fileRevision.getProperties().get(SVNRevisionProperty.DATE).toString()); | public void handleFileRevision(SVNFileRevision fileRevision) throws SVNException { Map propDiff = fileRevision.getPropertiesDelta(); String newMimeType = (String) (propDiff != null ? propDiff.get(SVNProperty.MIME_TYPE) : null); if (SVNProperty.isBinaryMimeType(newMimeType)) { SVNErro... |
return createBlocks(leftData, rightData, customEolBytes, MEMORY_THRESHOLD, FILE_SEGMENT_SIZE, 1.0, tempDirectory); | return createBlocks(leftData, rightData, customEolBytes, MEMORY_THRESHOLD, FILE_SEGMENT_SIZE, SEARCH_DEPTH_EXPONENT, tempDirectory); | public static QSequenceLineResult createBlocks(QSequenceLineRAData leftData, QSequenceLineRAData rightData, byte[] customEolBytes) throws IOException, QSequenceException { final File tempDirectory = File.createTempFile("q.sequence.line.", ".temp"); tempDirectory.delete(); return createBlocks(leftData, rightData, cu... |
public static void error(Throwable th) { Logger.getLogger("svn").log(Level.SEVERE, th.getMessage(), th); | public static void error(String message) { if (!ourIsEnabled) { return; } Logger.getLogger("svn").log(Level.SEVERE, message); | public static void error(Throwable th) { Logger.getLogger("svn").log(Level.SEVERE, th.getMessage(), th); } |
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN, nsae.getLocalizedMessage()); | SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "MD5 implementation not found: {0}", nsae.getLocalizedMessage()); | private FSOutputStream(FSRevisionNode revNode, RandomAccessFile file, InputStream source, long deltaStart, long repSize, long repOffset, File reposRootDir) throws SVNException { super(); myReposRootDir = reposRootDir; myTargetFile = file; mySource = source; myDeltaStart = deltaSta... |
myBuffer = new byte[0]; | public FSBufferStream(){ super(); myBufferLength = 0; } | |
message.append(err.toString()); message.append("\n"); | if (err != null) { message.append(err.toString()); message.append("\n"); } | public String getMessage() { StringBuffer message = new StringBuffer(); if (myErrorMessages != null && myErrorMessages.length > 0) { for (int i = 0; i < myErrorMessages.length; i++) { SVNErrorMessage err = myErrorMessages[i]; message.append(err.toString()); ... |
return message.toString(); } if (super.getMessage() != null && !"".equals(super.getMessage().trim())) { message.append(super.getMessage()); } if (getCause() instanceof SVNException) { message.append("\n"); message.append(((SVNException) getCause()).getMessage()); | public String getMessage() { StringBuffer message = new StringBuffer(); if (myErrorMessages != null && myErrorMessages.length > 0) { for (int i = 0; i < myErrorMessages.length; i++) { SVNErrorMessage err = myErrorMessages[i]; message.append(err.toString()); ... | |
public static void save(SVNDiffWindow window, boolean saveHeader, RandomAccessFile file) throws IOException { | public static void save(SVNDiffWindow window, boolean saveHeader, OutputStream os) throws IOException { | public static void save(SVNDiffWindow window, boolean saveHeader, RandomAccessFile file) throws IOException { if (saveHeader) { file.write(HEADER_BYTES); } if (!window.hasInstructions()) { return; } ByteArrayOutputStream bos = new ByteArrayOutputStream(); ... |
file.write(HEADER_BYTES); | os.write(HEADER_BYTES); | public static void save(SVNDiffWindow window, boolean saveHeader, RandomAccessFile file) throws IOException { if (saveHeader) { file.write(HEADER_BYTES); } if (!window.hasInstructions()) { return; } ByteArrayOutputStream bos = new ByteArrayOutputStream(); ... |
writeInt(file, offsets[i]); | writeInt(os, offsets[i]); | public static void save(SVNDiffWindow window, boolean saveHeader, RandomAccessFile file) throws IOException { if (saveHeader) { file.write(HEADER_BYTES); } if (!window.hasInstructions()) { return; } ByteArrayOutputStream bos = new ByteArrayOutputStream(); ... |
file.write(bos.toByteArray()); | bos.writeTo(os); | public static void save(SVNDiffWindow window, boolean saveHeader, RandomAccessFile file) throws IOException { if (saveHeader) { file.write(HEADER_BYTES); } if (!window.hasInstructions()) { return; } ByteArrayOutputStream bos = new ByteArrayOutputStream(); ... |
return rs.row[numCol]; | return XSQLVAR.decodeTimestamp(rs.row[numCol]); | Object getObject() throws java.sql.SQLException { if (rs.row[numCol]==null) return OBJECT_NULL_VALUE; return rs.row[numCol]; } |
return rs.row[numCol].toString(); | return String.valueOf(XSQLVAR.decodeTimestamp(rs.row[numCol])); | String getString() throws java.sql.SQLException { if (rs.row[numCol]==null) return STRING_NULL_VALUE; return rs.row[numCol].toString(); } |
String host = location.getProtocol() + ": host = PathUtil.append(host, myRepository.getRepositoryRoot()); | String host = myRepository.getFullRoot(); if (host == null) { host = location.getProtocol() + ": host = PathUtil.append(host, myRepository.getRepositoryRoot()); } | public void addDir(String path, String copyFromPath, long copyFromRevision) throws SVNException { if (copyFromPath != null) { SVNRepositoryLocation location = myRepository.getLocation(); String host = location.getProtocol() + "://" + location.getHost() + ":" + location.getPort(); ... |
String host = location.getProtocol() + ": host = PathUtil.append(host, myRepository.getRepositoryRoot()); | String host = myRepository.getFullRoot(); if (host == null) { host = location.getProtocol() + ": host = PathUtil.append(host, myRepository.getRepositoryRoot()); } | public void addFile(String path, String copyFromPath, long copyFromRevision) throws SVNException { if (copyFromPath != null) { SVNRepositoryLocation location = myRepository.getLocation(); String host = location.getProtocol() + "://" + location.getHost() + ":" + location.getPort(); ... |
public void applyTextDelta(String baseChecksum) throws SVNException; | public void applyTextDelta(String path, String baseChecksum) throws SVNException; | public void applyTextDelta(String baseChecksum) throws SVNException; |
public void changeFileProperty(String name, String value) throws SVNException; | public void changeFileProperty(String path, String name, String value) throws SVNException; | public void changeFileProperty(String name, String value) throws SVNException; |
public void closeFile(String textChecksum) throws SVNException; | public void closeFile(String path, String textChecksum) throws SVNException; | public void closeFile(String textChecksum) throws SVNException; |
public OutputStream textDeltaChunk(SVNDiffWindow diffWindow) throws SVNException; | public OutputStream textDeltaChunk(String path, SVNDiffWindow diffWindow) throws SVNException; | public OutputStream textDeltaChunk(SVNDiffWindow diffWindow) throws SVNException; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.