Skip to content

GuangYiDing/BeanUtilHelper

Repository files navigation

BeanUtilHelper

  • Generate GetterSetter Code with One Click.
  • Static inspection of attribute duplication, prompting for duplication where the property name is the same but the type is inconsistent, prompting for duplication where there are no identical properties.
  • One-click generation of property copy comments, explicitly declaring the copied properties, one-click preview of copied properties
  • One-click generation of different property comments, one-click preview of different properties
  • Automatically identify the BeanUtil.copyPropertiesand BeanUtils.copyProperties methods.
  • Automatically retrieve the common properties of the source and target types and generate line comments.
  • Automatically convert multiple property copy comments into block comments.

Usage

  1. Place the cursor on the BeanUtil.copyProperties or BeanUtils.copyProperties method.
  2. "Invoke Intention Action ( ⌥ + Enter for Mac; Alt + Enter for Win/Linux ), select the corresponding option of 'BeanUtilHelper'".
  3. Press enter to generate comments;

BeanUtil助手

  • 一键生成 GetterSetter 代码
  • 静态检查属性复制,提示属性名相同类型不一致的复制,提示没有相同属性的复制
  • 一键生成复制属性的注释,显式声明复制出的属性,一键预览复制的属性
  • 一键生成差异属性的注释,一键预览差异的属性,标识差异化属性,发现潜在问题
  • 自动识别 BeanUtil.copyPropertiesBeanUtils.copyProperties方法
  • 自动获取源类型与目标类型共有属性生成行注释
  • 自动转换多属性复制注释为块注释

使用方式

  1. 将光标放置在 BeanUtil.copyPropertiesBeanUtils.copyProperties 方法上
  2. 唤起意图动作 ( ⌥ + Enter for Mac; Alt + Enter for Win/Linux ),选择 "BeanUtilHelper"的对应选项
  3. 回车生成注释或代码

差异预览 差异预览 静态检查 静态检查 静态检查 生成 GetterSetter 生成GetterSetter 复制预览 复制预览 注释生成演示 插件演示