LoginSignup
2
1

More than 5 years have passed since last update.

IntelliJでserialVersionUIDを生成する方法

Last updated at Posted at 2015-04-09

設定

Preferences -> Project Settings -> Inspections
Serialization issues -> Serializable class without 'serialVersionUID'にチェックを入れる

生成

implements Serializableのあるクラスのクラス名にカーソルを合わせて
Option + Enter -> add 'Serializable field'を選択

private static final long serialVersionUID = 103055555555559529893L;

って感じのコードが自動挿入されます。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1