添加缺少的@Override

pull/9/head
Sxile 5 years ago
parent 2c250c1d1b
commit 230d4170e1

@ -376,6 +376,7 @@ public final class UUID implements java.io.Serializable, Comparable<UUID>
* *
* @return UUID * @return UUID
*/ */
@Override
public int hashCode() public int hashCode()
{ {
long hilo = mostSigBits ^ leastSigBits; long hilo = mostSigBits ^ leastSigBits;
@ -391,6 +392,7 @@ public final class UUID implements java.io.Serializable, Comparable<UUID>
* *
* @return {@code true} {@code false} * @return {@code true} {@code false}
*/ */
@Override
public boolean equals(Object obj) public boolean equals(Object obj)
{ {
if ((null == obj) || (obj.getClass() != UUID.class)) if ((null == obj) || (obj.getClass() != UUID.class))
@ -414,6 +416,7 @@ public final class UUID implements java.io.Serializable, Comparable<UUID>
* @return UUID val -10 1 * @return UUID val -10 1
* *
*/ */
@Override
public int compareTo(UUID val) public int compareTo(UUID val)
{ {
// The ordering is intentionally set up so that the UUIDs // The ordering is intentionally set up so that the UUIDs

@ -36,6 +36,7 @@ public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T>
this.clazz = clazz; this.clazz = clazz;
} }
@Override
public byte[] serialize(T t) throws SerializationException public byte[] serialize(T t) throws SerializationException
{ {
if (t == null) if (t == null)
@ -45,6 +46,7 @@ public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T>
return JSON.toJSONString(t, SerializerFeature.WriteClassName).getBytes(DEFAULT_CHARSET); return JSON.toJSONString(t, SerializerFeature.WriteClassName).getBytes(DEFAULT_CHARSET);
} }
@Override
public T deserialize(byte[] bytes) throws SerializationException public T deserialize(byte[] bytes) throws SerializationException
{ {
if (bytes == null || bytes.length <= 0) if (bytes == null || bytes.length <= 0)

@ -79,6 +79,7 @@ public class GenTableServiceImpl implements IGenTableService
* @param genTable * @param genTable
* @return * @return
*/ */
@Override
public List<GenTable> selectDbTableList(GenTable genTable) public List<GenTable> selectDbTableList(GenTable genTable)
{ {
return genTableMapper.selectDbTableList(genTable); return genTableMapper.selectDbTableList(genTable);
@ -90,6 +91,7 @@ public class GenTableServiceImpl implements IGenTableService
* @param tableNames * @param tableNames
* @return * @return
*/ */
@Override
public List<GenTable> selectDbTableListByNames(String[] tableNames) public List<GenTable> selectDbTableListByNames(String[] tableNames)
{ {
return genTableMapper.selectDbTableListByNames(tableNames); return genTableMapper.selectDbTableListByNames(tableNames);
@ -120,7 +122,7 @@ public class GenTableServiceImpl implements IGenTableService
/** /**
* *
* *
* @param ids ID * @param tableIds ID
* @return * @return
*/ */
@Override @Override
@ -276,6 +278,7 @@ public class GenTableServiceImpl implements IGenTableService
* *
* @param genTable * @param genTable
*/ */
@Override
public void validateEdit(GenTable genTable) public void validateEdit(GenTable genTable)
{ {
if (GenConstants.TPL_TREE.equals(genTable.getTplCategory())) if (GenConstants.TPL_TREE.equals(genTable.getTplCategory()))
@ -300,7 +303,7 @@ public class GenTableServiceImpl implements IGenTableService
/** /**
* *
* *
* @param genTable * @param table
* @param columns * @param columns
*/ */
public void setPkColumn(GenTable table, List<GenTableColumn> columns) public void setPkColumn(GenTable table, List<GenTableColumn> columns)

@ -147,6 +147,7 @@ public class SysConfigServiceImpl implements ISysConfigService
/** /**
* *
*/ */
@Override
public void clearCache() public void clearCache()
{ {
Collection<String> keys = redisService.keys(Constants.SYS_CONFIG_KEY + "*"); Collection<String> keys = redisService.keys(Constants.SYS_CONFIG_KEY + "*");

@ -62,6 +62,7 @@ public class SysDictDataServiceImpl implements ISysDictDataService
* @param dictCodes ID * @param dictCodes ID
* @return * @return
*/ */
@Override
public int deleteDictDataByIds(Long[] dictCodes) public int deleteDictDataByIds(Long[] dictCodes)
{ {
int row = dictDataMapper.deleteDictDataByIds(dictCodes); int row = dictDataMapper.deleteDictDataByIds(dictCodes);

@ -107,6 +107,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
* @param dictType * @param dictType
* @return * @return
*/ */
@Override
public SysDictType selectDictTypeByType(String dictType) public SysDictType selectDictTypeByType(String dictType)
{ {
return dictTypeMapper.selectDictTypeByType(dictType); return dictTypeMapper.selectDictTypeByType(dictType);
@ -118,6 +119,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
* @param dictIds ID * @param dictIds ID
* @return * @return
*/ */
@Override
public int deleteDictTypeByIds(Long[] dictIds) public int deleteDictTypeByIds(Long[] dictIds)
{ {
for (Long dictId : dictIds) for (Long dictId : dictIds)
@ -139,6 +141,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
/** /**
* *
*/ */
@Override
public void clearCache() public void clearCache()
{ {
DictUtils.clearDictCache(); DictUtils.clearDictCache();

@ -121,6 +121,7 @@ public class SysMenuServiceImpl implements ISysMenuService
* @param roleId ID * @param roleId ID
* @return * @return
*/ */
@Override
public List<Integer> selectMenuListByRoleId(Long roleId) public List<Integer> selectMenuListByRoleId(Long roleId)
{ {
return menuMapper.selectMenuListByRoleId(roleId); return menuMapper.selectMenuListByRoleId(roleId);

@ -86,6 +86,7 @@ public class SysNoticeServiceImpl implements ISysNoticeService
* @param noticeIds ID * @param noticeIds ID
* @return * @return
*/ */
@Override
public int deleteNoticeByIds(Long[] noticeIds) public int deleteNoticeByIds(Long[] noticeIds)
{ {
return noticeMapper.deleteNoticeByIds(noticeIds); return noticeMapper.deleteNoticeByIds(noticeIds);

@ -48,6 +48,7 @@ public class SysOperLogServiceImpl implements ISysOperLogService
* @param operIds ID * @param operIds ID
* @return * @return
*/ */
@Override
public int deleteOperLogByIds(Long[] operIds) public int deleteOperLogByIds(Long[] operIds)
{ {
return operLogMapper.deleteOperLogByIds(operIds); return operLogMapper.deleteOperLogByIds(operIds);

@ -68,6 +68,7 @@ public class SysPostServiceImpl implements ISysPostService
* @param userId ID * @param userId ID
* @return ID * @return ID
*/ */
@Override
public List<Integer> selectPostListByUserId(Long userId) public List<Integer> selectPostListByUserId(Long userId)
{ {
return postMapper.selectPostListByUserId(userId); return postMapper.selectPostListByUserId(userId);
@ -140,6 +141,7 @@ public class SysPostServiceImpl implements ISysPostService
* @return * @return
* @throws Exception * @throws Exception
*/ */
@Override
public int deletePostByIds(Long[] postIds) public int deletePostByIds(Long[] postIds)
{ {
for (Long postId : postIds) for (Long postId : postIds)

@ -81,6 +81,7 @@ public class SysRoleServiceImpl implements ISysRoleService
* *
* @return * @return
*/ */
@Override
public List<SysRole> selectRoleAll() public List<SysRole> selectRoleAll()
{ {
return SpringUtils.getAopProxy(this).selectRoleList(new SysRole()); return SpringUtils.getAopProxy(this).selectRoleList(new SysRole());
@ -92,6 +93,7 @@ public class SysRoleServiceImpl implements ISysRoleService
* @param userId ID * @param userId ID
* @return ID * @return ID
*/ */
@Override
public List<Integer> selectRoleListByUserId(Long userId) public List<Integer> selectRoleListByUserId(Long userId)
{ {
return roleMapper.selectRoleListByUserId(userId); return roleMapper.selectRoleListByUserId(userId);
@ -103,6 +105,7 @@ public class SysRoleServiceImpl implements ISysRoleService
* @param roleId ID * @param roleId ID
* @return * @return
*/ */
@Override
public SysRole selectRoleById(Long roleId) public SysRole selectRoleById(Long roleId)
{ {
return roleMapper.selectRoleById(roleId); return roleMapper.selectRoleById(roleId);
@ -149,6 +152,7 @@ public class SysRoleServiceImpl implements ISysRoleService
* *
* @param role * @param role
*/ */
@Override
public void checkRoleAllowed(SysRole role) public void checkRoleAllowed(SysRole role)
{ {
if (StringUtils.isNotNull(role.getRoleId()) && role.isAdmin()) if (StringUtils.isNotNull(role.getRoleId()) && role.isAdmin())
@ -207,6 +211,7 @@ public class SysRoleServiceImpl implements ISysRoleService
* @param role * @param role
* @return * @return
*/ */
@Override
public int updateRoleStatus(SysRole role) public int updateRoleStatus(SysRole role)
{ {
return roleMapper.updateRole(role); return roleMapper.updateRole(role);
@ -296,6 +301,7 @@ public class SysRoleServiceImpl implements ISysRoleService
* @param roleIds ID * @param roleIds ID
* @return * @return
*/ */
@Override
public int deleteRoleByIds(Long[] roleIds) public int deleteRoleByIds(Long[] roleIds)
{ {
for (Long roleId : roleIds) for (Long roleId : roleIds)

@ -194,6 +194,7 @@ public class SysUserServiceImpl implements ISysUserService
* *
* @param user * @param user
*/ */
@Override
public void checkUserAllowed(SysUser user) public void checkUserAllowed(SysUser user)
{ {
if (StringUtils.isNotNull(user.getUserId()) && user.isAdmin()) if (StringUtils.isNotNull(user.getUserId()) && user.isAdmin())
@ -270,10 +271,11 @@ public class SysUserServiceImpl implements ISysUserService
/** /**
* *
* *
* @param userId ID * @param userName
* @param avatar * @param avatar
* @return * @return
*/ */
@Override
public boolean updateUserAvatar(String userName, String avatar) public boolean updateUserAvatar(String userName, String avatar)
{ {
return userMapper.updateUserAvatar(userName, avatar) > 0; return userMapper.updateUserAvatar(userName, avatar) > 0;
@ -378,6 +380,7 @@ public class SysUserServiceImpl implements ISysUserService
* @param userIds ID * @param userIds ID
* @return * @return
*/ */
@Override
public int deleteUserByIds(Long[] userIds) public int deleteUserByIds(Long[] userIds)
{ {
for (Long userId : userIds) for (Long userId : userIds)

Loading…
Cancel
Save