Skip to content
This repository was archived by the owner on Feb 23, 2018. It is now read-only.

Commit 2ea4892

Browse files
author
extempore
committed
Deprecated scala.dbc. Wish there was a better way to deprecate a
package than deprecating every individual thing. (There isn't, is there?) Closes #4313, no review. git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24462 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
1 parent b25198b commit 2ea4892

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+89
-84
lines changed

src/compiler/scala/tools/nsc/interpreter/ILoop.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ class ILoop(in0: Option[BufferedReader], protected val out: PrintWriter)
424424
*/
425425
def loop() {
426426
def readOneLine() = {
427-
out.flush
427+
out.flush()
428428
in readLine prompt
429429
}
430430
// return false if repl should exit

src/dbc/scala/dbc/DataType.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ package scala.dbc;
1414
/** An ISO-9075:2003 (SQL) data type. Mappings between SQL types and
1515
* database specific types should be provided by the database driver.
1616
*/
17-
abstract class DataType {
17+
@deprecated(DbcIsDeprecated) abstract class DataType {
1818

1919
/** Tests whether this datatype is equivalent to another. Usually, two
2020
* types are defined as equivalent if they are equal. Two types can be
@@ -50,7 +50,7 @@ abstract class DataType {
5050

5151
}
5252

53-
object DataType {
53+
@deprecated(DbcIsDeprecated) object DataType {
5454

5555
type Id = Int;
5656

src/dbc/scala/dbc/Database.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import java.sql._
1818
*
1919
* @author Gilles Dubochet
2020
*/
21-
case class Database(dbms: Vendor) {
21+
@deprecated(DbcIsDeprecated) case class Database(dbms: Vendor) {
2222

2323
class Closed extends Exception {}
2424

src/dbc/scala/dbc/Syntax.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import java.math.{BigDecimal, BigInteger};
1717
/** This class ..
1818
*
1919
*/
20-
object Syntax {
20+
@deprecated(DbcIsDeprecated) object Syntax {
2121

2222
import syntax.DataTypeUtil;
2323

src/dbc/scala/dbc/Utilities.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ package scala.dbc;
1515
* This object's members must be visible in an expression to use value
1616
* auto-conversion.
1717
*/
18-
object Utilities {
18+
@deprecated(DbcIsDeprecated) object Utilities {
1919

2020
implicit def constantToValue (obj: statement.expression.Constant): Value =
2121
obj.constantValue;

src/dbc/scala/dbc/Value.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ package scala.dbc;
1212

1313

1414
/** A SQL-99 value of any type. */
15-
abstract class Value {
15+
@deprecated(DbcIsDeprecated) abstract class Value {
1616

1717
/** The SQL-99 type of the value. */
1818
val dataType: DataType;

src/dbc/scala/dbc/Vendor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import java.sql.{Connection, Driver};
1616

1717
/** This class ..
1818
*/
19-
abstract class Vendor {
19+
@deprecated(DbcIsDeprecated) abstract class Vendor {
2020

2121
def nativeDriverClass: Class[_];
2222
def uri: java.net.URI;

src/dbc/scala/dbc/datatype/ApproximateNumeric.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ package datatype;
1515
/** A type category for all SQL types that store varying-precision
1616
* numbers.
1717
*/
18-
abstract class ApproximateNumeric[Type] (
18+
@deprecated(DbcIsDeprecated) abstract class ApproximateNumeric[Type] (
1919
override val nativeTypeId: DataType.Id
2020
) extends datatype.Numeric[Type](nativeTypeId) {
2121

src/dbc/scala/dbc/datatype/Boolean.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ package datatype;
1313

1414

1515
/** The SQL type for a truth value. */
16-
class Boolean extends DataType {
16+
@deprecated(DbcIsDeprecated) class Boolean extends DataType {
1717

1818
def isEquivalent (datatype:DataType) = datatype match {
1919
case dt:Boolean => true

src/dbc/scala/dbc/datatype/Character.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ package datatype;
1515
/** A SQL type for a string of characters of arbitrary length with
1616
* arbitrary character set.
1717
*/
18-
abstract class Character extends CharacterString {
18+
@deprecated(DbcIsDeprecated) abstract class Character extends CharacterString {
1919

2020
def isEquivalent(datatype: DataType) = datatype match {
2121
case dt: Character =>

0 commit comments

Comments
 (0)