Skip to content

Fix deprecated warning in scala for java programer #2335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _it/tutorials/scala-for-java-programmers.md
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ definendo la classe `Date` come segue:
def year = y
def month = m
def day = d
override def toString(): String = year + "-" + month + "-" + day
override def toString(): String = s"$year-$month-$day"

La parte importante qui è la dichiarazione `extends Ord` che segue il nome
della classe e dei parametri. Dichiara che la classe `Date` eredita il
Expand Down
2 changes: 1 addition & 1 deletion _ja/tutorials/scala-for-java-programmers.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ Java の `Object` 型のより一般的なものとしてとらえられます
def year = y
def month = m
def day = d
override def toString(): String = year + "-" + month + "-" + day
override def toString(): String = s"$year-$month-$day"

ここで重要なのは、クラス名とパラメータのあとに続く `extends Ord` という宣言です。
`Date` クラスが `Ord` トレイトを継承していることを宣言しています。
Expand Down
2 changes: 1 addition & 1 deletion _ko/tutorials/scala-for-java-programmers.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ Java 프로그래머들이 트레잇을 이해하는 가장 쉬운 길은 코드
def year = y
def month = m
def day = d
override def toString(): String = year + "-" + month + "-" + day
override def toString(): String = s"$year-$month-$day"

여기서 중요한 부분은 클래스 이름과 파라미터 뒤에 따라오는
`extends Ord` 선언이다. 이 선언은 `Date` 클래스가 `Ord`
Expand Down
2 changes: 1 addition & 1 deletion _overviews/tutorials/scala-for-java-programmers.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ represent as integers. We therefore start the definition of the
def year = y
def month = m
def day = d
override def toString(): String = year + "-" + month + "-" + day
override def toString(): String = s"$year-$month-$day"

The important part here is the `extends Ord` declaration which
follows the class name and parameters. It declares that the
Expand Down
2 changes: 1 addition & 1 deletion _zh-cn/tutorials/scala-for-java-programmers.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ Java 中我们会将这个树用一个抽象父类表示,然后每种节点跟
def year = y
def month = m
def day = d
override def toString(): String = year + "-" + month + "-" + day
override def toString(): String = s"$year-$month-$day"

这边要注意的是声明在类名称跟参数之后的 `extends Ord`。这个语法声明了 `Date` 继承 `Ord` 特质。

Expand Down
2 changes: 1 addition & 1 deletion _zh-tw/tutorials/scala-for-java-programmers.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ Java 中我們會將這個樹用一個抽象母類別表示,然後每種節點
def year = y
def month = m
def day = d
override def toString(): String = year + "-" + month + "-" + day
override def toString(): String = s"$year-$month-$day"

這邊要注意的是宣告在類別名稱跟參數之後的 `extends Ord`。這個語法宣告了 `Date` 繼承 `Ord` 特質。

Expand Down