`
Sunshyfangtian
  • 浏览: 229366 次
  • 性别: Icon_minigender_1
  • 来自: 惠州
社区版块
存档分类
最新评论

serial version ID

阅读更多

 

1、当需要serialVersionUID时,Eclipse提供提示功能.


2、quick fix 及fix提供了多个修复方式,前两个为:
    add default serial version ID
    add generated serial version ID

add default serial version ID:
Adds a default serial version ID to the selected type
Use this option to add a user-defined ID in combination with custom serialization code if the type did undergo structural change since its first release.

add generated serial version ID:
Adds a generated serial version ID to the selected type
Use this option to add a compiler-generated ID if the type didnot undergo structural change since its first release.

3、如果你不喜欢此项功能,可以把它关掉,
windows -> preferences -> compiler -> Error/Warnings-> Potential Programming problems
将Serializable class without serialVersionUID的warning改成ignore.

4、不显式声明serialVersionUID,就会由jvm帮你在序列化时生成一个,很费资源。
所以sun推荐都显式声明serialVersionUID,且为private final static long 修饰

5、在《Efficetive Java》中后几章对serialVersionUID有详细介绍。

 

分享到:
评论

相关推荐

    eclipse 格式化模板

    Add missing serial version ID (generated) Remove unnecessary casts Remove unnecessary '$NON-NLS$' tags Add unimplemented methods Sort members excluding fields, enum constants, and initializers ...

    SerialATA_Revision_3_3_Gold

    i) TPR064 - Queued version of ACS-4 ZERO EXT command; j) TPR065 - Modernize Aux Field in NCQ NON-DATA Command; k) TPR066 - Reporting Current Write Pointer for NCQ Errors in Write Pointer Zones; l) TPR...

    CAT-V3.3(Max2009_32).rar

    Set the "Serial Version" to "CAT v3.x". 5. In the license manager click on "Activate License". 6. In the keygen enter your hardware ID from the license manager and click on "Generate Authorisation...

    qemu-0.13.0(编译过全处理器支持)

    -chardev serial,id=id,path=path[,mux=on|off] Bluetooth(R) options: -bt hci,null dumb bluetooth HCI - doesn't respond to commands -bt hci,host[:id] use host's HCI with the given name -bt hci[,vlan=n]...

    Win7x64-USB-to-serial Driver突破Win7x64用STC-ISP烧程序失败

    Supported device ID and product strings: . VID_067B&PID_2303 for "Prolific USB-to-Serial Comm Port" Driver Versions: ------------------- - Windows 2000/XP/Server2003 (32 & 64-bit) WDM WHQL Driver:...

    金士顿8GU盘量产成功

    Serial Number: 001D0F1D2331A940A781026C Channel: Byte Mode Plane(s): 1 Internal Interleave: Disable External Interleave: 2 Way tRc/tWc: 28.57 ns (35 Mhz) Max Current: 200 mA Real Density: (7.510 GB) ...

    FT232R USB UART IC Datasheet(Version 2.13)

    Single chip USB to asynchronous serial datatransfer interface. Entire USB protocol handled on the chip. No USB specific firmware programming required. Fully integrated 1024 bit EEPROM storing device ...

    k7 SRIO参考例程

    Core name: Xilinx LogiCORE Serial RapidIO Version: 5.5 Release Date: April 19, 2010 ================================================================================ This document contains the ...

    PL2303_Prolific_DriverInstaller_v1.5.0

    System Requirement: . Supports the following Windows OS Family: - Windows 2000 SP4 - Windows XP SP2 and above (32 & 64 bit) - Windows Server 2003 (32 & ..._2303 for "Prolific USB-to-Serial Comm Port

    Qemu-1.0.1 for windows

    -chardev serial,id=id,path=path[,mux=on|off] Bluetooth(R) options: -bt hci,null dumb bluetooth HCI - doesn't respond to commands -bt hci,host[:id] use host's HCI with the given name -bt hci[,vlan=n]...

    The.Enigma.Protector.x32.v4.30_DEMO_Modified_Crack

    - Improved Hardware ID detection of HDD Serial - Bug fixed loading stolen keys from keygen database for command line version - Bug fixed loading relocation directory - Minor bugs fixed - Virtual Box: ...

    The.Enigma.Protector.x64.v4.30_DEMO_Modified_Crack

    - Improved Hardware ID detection of HDD Serial - Bug fixed loading stolen keys from keygen database for command line version - Bug fixed loading relocation directory - Minor bugs fixed - Virtual Box: ...

    ora分析脚本

    - hash_to_sqlid <sql_id> : get the sql_id of the cursor given its hash value - sqlid_to_hash <sql_id>: get the hash value of the cursor given its (unquoted) sql_id - exptbs: generate export ...

    华为路由交换模拟器V3

    [Quidway-Serial0]ospf enable area <area_id> 配置OSPF区域 标准访问列表命令格式如下: acl <acl-number> [match-order config|auto] 默认前者顺序匹配。 rule [normal|special]{permit|deny} [source source...

    PL2303串口驱动

    单片机 串口 PL2303 Windows OSes: - Windows 98SE - Windows ME - Windows 2000 SP4 ...Supported device ID and product strings: . VID_067B&PID_2303 for "Prolific USB-to-Serial Comm Port

    ap6212a0_a33_sc3817r_服务器验证通过_bt已经通了_wifi需要修改配置_需要再次验证_20170626_1549.7z

    WPA_SUPPLICANT_VERSION := VER_0_8_X BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd BOARD_HOSTAPD_DRIVER := NL80211 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd BOARD_WLAN_DEVICE ...

    edid编译软件

    (0CH-0FH) Last 5 Digits of Serial Number _______________ = 33029 (10H) Week of Manufacture __________________________ = 52 (11H) Year of Manufacture __________________________ = 2009 (12H) EDID ...

    CA-100CUSB充电线改装为移动电源

    WHQL certified version. New driver architecture combining 32-bit OS driver and 64-bit OS driver. Release Fixes • Code fixes for PreFast and SDV. • Fix write timeouts. • Changed write request ...

    TRegware 4.02

    - Option to use system-generated license id (uses Windows system ID or hard drive serial #) - Option to set site-licenses and single-user licenses. New features in version 2.0: -Detects if the user...

    MotionBuilder Crack

    start XFORCE Keygen 32bits version if you are installing a 32bits application and 64bits if you are installing a 64bits application. use as serial 666-69696969, 665-65656565 , ... use as product ...

Global site tag (gtag.js) - Google Analytics