mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Change 'return ;' to 'return;'; remove space.
This commit is contained in:
parent
0dfe913803
commit
28e92b89f4
@ -234,7 +234,7 @@ public class Unicode
|
|||||||
catch (ClassNotFoundException cnfe)
|
catch (ClassNotFoundException cnfe)
|
||||||
{
|
{
|
||||||
log("Unable to load driver", cnfe);
|
log("Unable to load driver", cnfe);
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,7 @@ import org.omg.CosNaming.*;
|
|||||||
*
|
*
|
||||||
* It has no GUI, just a text frontend to keep it simple.
|
* It has no GUI, just a text frontend to keep it simple.
|
||||||
*
|
*
|
||||||
* $Id: StockClient.java,v 1.4 2001/11/19 23:16:45 momjian Exp $
|
* $Id: StockClient.java,v 1.5 2001/11/19 23:19:20 momjian Exp $
|
||||||
*/
|
*/
|
||||||
public class StockClient
|
public class StockClient
|
||||||
{
|
{
|
||||||
@ -35,14 +35,14 @@ public class StockClient
|
|||||||
if (nameServiceObj == null)
|
if (nameServiceObj == null)
|
||||||
{
|
{
|
||||||
System.err.println("nameServiceObj == null");
|
System.err.println("nameServiceObj == null");
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
nameService = org.omg.CosNaming.NamingContextHelper.narrow(nameServiceObj);
|
nameService = org.omg.CosNaming.NamingContextHelper.narrow(nameServiceObj);
|
||||||
if (nameService == null)
|
if (nameService == null)
|
||||||
{
|
{
|
||||||
System.err.println("nameService == null");
|
System.err.println("nameService == null");
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resolve the dispenser
|
// Resolve the dispenser
|
||||||
@ -53,7 +53,7 @@ public class StockClient
|
|||||||
if (dispenser == null)
|
if (dispenser == null)
|
||||||
{
|
{
|
||||||
System.err.println("dispenser == null");
|
System.err.println("dispenser == null");
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now run the front end.
|
// Now run the front end.
|
||||||
|
@ -5,7 +5,7 @@ import org.omg.CosNaming.*;
|
|||||||
/*
|
/*
|
||||||
* This class implements the server side of the example.
|
* This class implements the server side of the example.
|
||||||
*
|
*
|
||||||
* $Id: StockDispenserImpl.java,v 1.3 2001/11/19 22:43:13 momjian Exp $
|
* $Id: StockDispenserImpl.java,v 1.4 2001/11/19 23:19:20 momjian Exp $
|
||||||
*/
|
*/
|
||||||
public class StockDispenserImpl extends stock._StockDispenserImplBase
|
public class StockDispenserImpl extends stock._StockDispenserImplBase
|
||||||
{
|
{
|
||||||
@ -67,11 +67,11 @@ public class StockDispenserImpl extends stock._StockDispenserImplBase
|
|||||||
{
|
{
|
||||||
stock[i].inUse = false;
|
stock[i].inUse = false;
|
||||||
System.out.println("Releasing slot " + i);
|
System.out.println("Releasing slot " + i);
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.println("Reserved object not a member of this dispenser");
|
System.out.println("Reserved object not a member of this dispenser");
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -5,7 +5,7 @@ import org.omg.CosNaming.*;
|
|||||||
/*
|
/*
|
||||||
* This class implements the server side of the example.
|
* This class implements the server side of the example.
|
||||||
*
|
*
|
||||||
* $Id: StockServer.java,v 1.3 2001/11/19 22:43:13 momjian Exp $
|
* $Id: StockServer.java,v 1.4 2001/11/19 23:19:20 momjian Exp $
|
||||||
*/
|
*/
|
||||||
public class StockServer
|
public class StockServer
|
||||||
{
|
{
|
||||||
@ -29,14 +29,14 @@ public class StockServer
|
|||||||
if (nameServiceObj == null)
|
if (nameServiceObj == null)
|
||||||
{
|
{
|
||||||
System.err.println("nameServiceObj = null");
|
System.err.println("nameServiceObj = null");
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
org.omg.CosNaming.NamingContext nameService = org.omg.CosNaming.NamingContextHelper.narrow(nameServiceObj);
|
org.omg.CosNaming.NamingContext nameService = org.omg.CosNaming.NamingContextHelper.narrow(nameServiceObj);
|
||||||
if (nameService == null)
|
if (nameService == null)
|
||||||
{
|
{
|
||||||
System.err.println("nameService = null");
|
System.err.println("nameService = null");
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// bind the dispenser into the naming service
|
// bind the dispenser into the naming service
|
||||||
|
@ -82,7 +82,7 @@ public class psql
|
|||||||
if (line.startsWith("\\"))
|
if (line.startsWith("\\"))
|
||||||
{
|
{
|
||||||
processSlashCommand(line);
|
processSlashCommand(line);
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean type = st.execute(line);
|
boolean type = st.execute(line);
|
||||||
|
@ -11,7 +11,7 @@ import org.postgresql.util.*;
|
|||||||
import org.postgresql.core.*;
|
import org.postgresql.core.*;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Id: Connection.java,v 1.37 2001/11/19 23:16:45 momjian Exp $
|
* $Id: Connection.java,v 1.38 2001/11/19 23:19:20 momjian Exp $
|
||||||
*
|
*
|
||||||
* This abstract class is used by org.postgresql.Driver to open either the JDBC1 or
|
* This abstract class is used by org.postgresql.Driver to open either the JDBC1 or
|
||||||
* JDBC2 versions of the Connection class.
|
* JDBC2 versions of the Connection class.
|
||||||
@ -817,7 +817,7 @@ public abstract class Connection
|
|||||||
public void setAutoCommit(boolean autoCommit) throws SQLException
|
public void setAutoCommit(boolean autoCommit) throws SQLException
|
||||||
{
|
{
|
||||||
if (this.autoCommit == autoCommit)
|
if (this.autoCommit == autoCommit)
|
||||||
return ;
|
return;
|
||||||
if (autoCommit)
|
if (autoCommit)
|
||||||
ExecSQL("end");
|
ExecSQL("end");
|
||||||
else
|
else
|
||||||
@ -860,7 +860,7 @@ public abstract class Connection
|
|||||||
public void commit() throws SQLException
|
public void commit() throws SQLException
|
||||||
{
|
{
|
||||||
if (autoCommit)
|
if (autoCommit)
|
||||||
return ;
|
return;
|
||||||
if (haveMinimumServerVersion("7.1"))
|
if (haveMinimumServerVersion("7.1"))
|
||||||
{
|
{
|
||||||
ExecSQL("commit;begin;" + getIsolationLevelSQL());
|
ExecSQL("commit;begin;" + getIsolationLevelSQL());
|
||||||
@ -884,7 +884,7 @@ public abstract class Connection
|
|||||||
public void rollback() throws SQLException
|
public void rollback() throws SQLException
|
||||||
{
|
{
|
||||||
if (autoCommit)
|
if (autoCommit)
|
||||||
return ;
|
return;
|
||||||
if (haveMinimumServerVersion("7.1"))
|
if (haveMinimumServerVersion("7.1"))
|
||||||
{
|
{
|
||||||
ExecSQL("rollback; begin;" + getIsolationLevelSQL());
|
ExecSQL("rollback; begin;" + getIsolationLevelSQL());
|
||||||
|
@ -76,7 +76,7 @@ public class BytePoolDim1
|
|||||||
{
|
{
|
||||||
// If it's larger than maxsize then we don't touch it
|
// If it's larger than maxsize then we don't touch it
|
||||||
if (b.length > maxsize)
|
if (b.length > maxsize)
|
||||||
return ;
|
return;
|
||||||
|
|
||||||
ObjectPool not_usel = notusemap[b.length];
|
ObjectPool not_usel = notusemap[b.length];
|
||||||
ObjectPool in_usel = inusemap[b.length];
|
ObjectPool in_usel = inusemap[b.length];
|
||||||
|
@ -42,7 +42,7 @@ public class BytePoolDim2
|
|||||||
{
|
{
|
||||||
if (b.length > maxsize)
|
if (b.length > maxsize)
|
||||||
{
|
{
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
ObjectPool not_usel = notusemap[b.length];
|
ObjectPool not_usel = notusemap[b.length];
|
||||||
ObjectPool in_usel = inusemap[b.length];
|
ObjectPool in_usel = inusemap[b.length];
|
||||||
|
@ -83,7 +83,7 @@ public class SimpleObjectPool implements ObjectPool
|
|||||||
|
|
||||||
int srcsize = pool.size();
|
int srcsize = pool.size();
|
||||||
if (srcsize == 0)
|
if (srcsize == 0)
|
||||||
return ;
|
return;
|
||||||
int totalsize = srcsize + cursize;
|
int totalsize = srcsize + cursize;
|
||||||
if (totalsize > maxsize)
|
if (totalsize > maxsize)
|
||||||
{
|
{
|
||||||
|
@ -613,7 +613,7 @@ public class PreparedStatement extends Statement implements java.sql.PreparedSta
|
|||||||
if (x == null)
|
if (x == null)
|
||||||
{
|
{
|
||||||
setNull(parameterIndex, Types.OTHER);
|
setNull(parameterIndex, Types.OTHER);
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
switch (targetSqlType)
|
switch (targetSqlType)
|
||||||
{
|
{
|
||||||
@ -683,7 +683,7 @@ public class PreparedStatement extends Statement implements java.sql.PreparedSta
|
|||||||
if (x == null)
|
if (x == null)
|
||||||
{
|
{
|
||||||
setNull(parameterIndex, Types.OTHER);
|
setNull(parameterIndex, Types.OTHER);
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
if (x instanceof String)
|
if (x instanceof String)
|
||||||
setString(parameterIndex, (String)x);
|
setString(parameterIndex, (String)x);
|
||||||
|
@ -648,7 +648,7 @@ public class PreparedStatement extends Statement implements java.sql.PreparedSta
|
|||||||
if (x == null)
|
if (x == null)
|
||||||
{
|
{
|
||||||
setNull(parameterIndex, Types.OTHER);
|
setNull(parameterIndex, Types.OTHER);
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
switch (targetSqlType)
|
switch (targetSqlType)
|
||||||
{
|
{
|
||||||
@ -718,7 +718,7 @@ public class PreparedStatement extends Statement implements java.sql.PreparedSta
|
|||||||
if (x == null)
|
if (x == null)
|
||||||
{
|
{
|
||||||
setNull(parameterIndex, Types.OTHER);
|
setNull(parameterIndex, Types.OTHER);
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
if (x instanceof String)
|
if (x instanceof String)
|
||||||
setString(parameterIndex, (String)x);
|
setString(parameterIndex, (String)x);
|
||||||
|
@ -485,7 +485,7 @@ public class Serialize
|
|||||||
{
|
{
|
||||||
DriverManager.println("Serialize.create: table " + tableName + " exists, skipping");
|
DriverManager.println("Serialize.create: table " + tableName + " exists, skipping");
|
||||||
rs.close();
|
rs.close();
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// else table not found, so create it
|
// else table not found, so create it
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 1999 (C) Exoffice Technologies Inc. All Rights Reserved.
|
* Copyright 1999 (C) Exoffice Technologies Inc. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* $Id: ClientConnection.java,v 1.3 2001/11/19 22:33:39 momjian Exp $
|
* $Id: ClientConnection.java,v 1.4 2001/11/19 23:19:21 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -464,7 +464,7 @@ final class ClientConnection
|
|||||||
throws SQLException
|
throws SQLException
|
||||||
{
|
{
|
||||||
if ( _xaConn == null )
|
if ( _xaConn == null )
|
||||||
return ;
|
return;
|
||||||
|
|
||||||
// Notify the XA connection that we are no longer going
|
// Notify the XA connection that we are no longer going
|
||||||
// to be used. Whether the underlying connection is released,
|
// to be used. Whether the underlying connection is released,
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 1999 (C) Exoffice Technologies Inc. All Rights Reserved.
|
* Copyright 1999 (C) Exoffice Technologies Inc. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* $Id: XAConnectionImpl.java,v 1.3 2001/11/19 22:33:39 momjian Exp $
|
* $Id: XAConnectionImpl.java,v 1.4 2001/11/19 23:19:21 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -310,7 +310,7 @@ public final class XAConnectionImpl
|
|||||||
// We have to expect being called by a ClientConnection that we
|
// We have to expect being called by a ClientConnection that we
|
||||||
// no longer regard as valid. That's acceptable, we just ignore.
|
// no longer regard as valid. That's acceptable, we just ignore.
|
||||||
if ( clientId != _clientId )
|
if ( clientId != _clientId )
|
||||||
return ;
|
return;
|
||||||
|
|
||||||
// If we are handling an underlying connection, we commit the
|
// If we are handling an underlying connection, we commit the
|
||||||
// old transaction and are ready to work for a new one.
|
// old transaction and are ready to work for a new one.
|
||||||
@ -329,7 +329,7 @@ public final class XAConnectionImpl
|
|||||||
event = new ConnectionEvent( this, except );
|
event = new ConnectionEvent( this, except );
|
||||||
_listener.connectionErrorOccurred( event );
|
_listener.connectionErrorOccurred( event );
|
||||||
}
|
}
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Notify the listener.
|
// Notify the listener.
|
||||||
@ -355,7 +355,7 @@ public final class XAConnectionImpl
|
|||||||
ConnectionEvent event;
|
ConnectionEvent event;
|
||||||
|
|
||||||
if ( clientId != _clientId )
|
if ( clientId != _clientId )
|
||||||
return ;
|
return;
|
||||||
|
|
||||||
// If the connection is not two-phase commit we cannot determine
|
// If the connection is not two-phase commit we cannot determine
|
||||||
// whether the error is critical, we just return. If the connection
|
// whether the error is critical, we just return. If the connection
|
||||||
@ -364,11 +364,11 @@ public final class XAConnectionImpl
|
|||||||
{
|
{
|
||||||
if ( ! ( _underlying instanceof TwoPhaseConnection ) ||
|
if ( ! ( _underlying instanceof TwoPhaseConnection ) ||
|
||||||
! ( (TwoPhaseConnection) _underlying ).isCriticalError( except ) )
|
! ( (TwoPhaseConnection) _underlying ).isCriticalError( except ) )
|
||||||
return ;
|
return;
|
||||||
if ( _txConn.conn == null ||
|
if ( _txConn.conn == null ||
|
||||||
! ( _txConn.conn instanceof TwoPhaseConnection ) ||
|
! ( _txConn.conn instanceof TwoPhaseConnection ) ||
|
||||||
! ( (TwoPhaseConnection) _txConn.conn ).isCriticalError( except ) )
|
! ( (TwoPhaseConnection) _txConn.conn ).isCriticalError( except ) )
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The client connection is no longer useable, the underlying
|
// The client connection is no longer useable, the underlying
|
||||||
@ -766,7 +766,7 @@ public final class XAConnectionImpl
|
|||||||
// If connection has been prepared and is read-only,
|
// If connection has been prepared and is read-only,
|
||||||
// nothing to do at this stage.
|
// nothing to do at this stage.
|
||||||
if ( txConn.readOnly )
|
if ( txConn.readOnly )
|
||||||
return ;
|
return;
|
||||||
|
|
||||||
// This must be a one-phase commite, or the connection
|
// This must be a one-phase commite, or the connection
|
||||||
// should have been prepared before.
|
// should have been prepared before.
|
||||||
@ -829,7 +829,7 @@ public final class XAConnectionImpl
|
|||||||
// been terminated any other way, nothing to do
|
// been terminated any other way, nothing to do
|
||||||
// either.
|
// either.
|
||||||
if ( txConn.readOnly || txConn.conn == null )
|
if ( txConn.readOnly || txConn.conn == null )
|
||||||
return ;
|
return;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user