Skip to content

基于注解的缓存装饰器#119

Open
hahaen wants to merge 3 commits intomasterfrom
haha
Open

基于注解的缓存装饰器#119
hahaen wants to merge 3 commits intomasterfrom
haha

Conversation

@hahaen
Copy link

@hahaen hahaen commented Oct 23, 2021

  • 这个PR解答了当前仓库中的题目(机器人会自动判题并合并当前PR)
  • 这个PR修复了当前仓库中的一些代码缺陷(机器人不会判题,而是由管理员来处理当前PR)

@hcsp-bot
Copy link
Contributor

🎉 感谢提交Pull Request!请稍等片刻,我们已经将其提交到CI进行检查,一旦有结果会立即通知您!


import net.bytebuddy.ByteBuddy;
import net.bytebuddy.implementation.MethodDelegation;
import net.bytebuddy.implementation.bind.annotation.*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不应使用 '.*' 形式的导入 - net.bytebuddy.implementation.bind.annotation.* 。

}

public static class CacheAdvisor {
private static final ConcurrentHashMap<CacheKey, CacheValue> cache = new ConcurrentHashMap<>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

名称 'cache' 必须匹配表达式: '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$' 。

}

public static class CacheAdvisor {
private static final ConcurrentHashMap<CacheKey, CacheValue> aache = new ConcurrentHashMap<>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

名称 'aache' 必须匹配表达式: '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$' 。

}

public static class CacheAdvisor {
private static final ConcurrentHashMap<CacheKey, CacheValue> cacheMap = new ConcurrentHashMap<>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

名称 'cacheMap' 必须匹配表达式: '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$' 。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants