summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-10-25 06:00:59 +0000
committerPaul Phillips <paulp@improving.org>2009-10-25 06:00:59 +0000
commit728775440ccd67928c25914a1e003ff9765ad80b (patch)
treebc0d55939eb9ed99cd869dc5a9dbbc1f7b4c4555 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent2cef1c58a54c996243fb85630cce841073c18650 (diff)
downloadscala-728775440ccd67928c25914a1e003ff9765ad80b.tar.gz
scala-728775440ccd67928c25914a1e003ff9765ad80b.tar.bz2
scala-728775440ccd67928c25914a1e003ff9765ad80b.zip
Deprecation patrol.
compile scalac with -deprecation and not cause any machines to catch fire. Most of the remaining warnings are glancing furtively at Tuple2, waiting for the moment to pounce.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 15ac8cdf67..9b3bca2b55 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -1372,7 +1372,7 @@ trait Typers { self: Analyzer =>
}
if (!forMSIL && (value.hasAnnotation(BeanPropertyAttr) ||
value.hasAnnotation(BooleanBeanPropertyAttr))) {
- val nameSuffix = name(0).toString.toUpperCase + name.subName(1, name.length)
+ val nameSuffix = name.toString().capitalize
val beanGetterName =
(if (value.hasAnnotation(BooleanBeanPropertyAttr)) "is" else "get") +
nameSuffix
@@ -1933,7 +1933,7 @@ trait Typers { self: Analyzer =>
val result = checkDead(localTyper.typed(stat))
if (treeInfo.isSelfOrSuperConstrCall(result)) {
context.inConstructorSuffix = true
- if (treeInfo.isSelfConstrCall(result) && result.symbol.pos.offset.getOrElse(0) >= exprOwner.enclMethod.pos.offset.getOrElse(0))
+ if (treeInfo.isSelfConstrCall(result) && result.symbol.pos.pointOrElse(0) >= exprOwner.enclMethod.pos.pointOrElse(0))
error(stat.pos, "called constructor's definition must precede calling constructor's definition")
}
result