🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@ortex
Copy link
Member

@ortex ortex commented Dec 2, 2022

based on #32 . Fixed #5

@ortex ortex mentioned this pull request Dec 2, 2022
@ortex ortex force-pushed the feature/finalizers branch from cbe53da to 4284066 Compare December 3, 2022 17:08
@ortex ortex requested review from MatteoArella and gavv December 3, 2022 17:30
@ortex ortex changed the title WIP: Feature/finalizers Feature/finalizers Dec 3, 2022
@ortex ortex force-pushed the feature/finalizers branch from b6cacb0 to 43a3f34 Compare December 3, 2022 17:37
Comment on lines +35 to +38
private static long tryOpen(ContextConfig config) throws IllegalArgumentException, Exception {
if (config == null) throw new IllegalArgumentException();
return open(config);
}
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: since we anyway have validation in native open(), then we can move this check there and get rid of tryOpen at all, to keep all validation in one place.

Copy link
Member Author

Choose a reason for hiding this comment

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

let's fix it in #4, I'll update issue after merge

Copy link
Member

@gavv gavv left a comment

Choose a reason for hiding this comment

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

Thanks!

@gavv

This comment was marked as resolved.

@ortex ortex requested a review from gavv December 4, 2022 14:01
@ortex ortex force-pushed the feature/finalizers branch from bd4dbf0 to cd818a0 Compare December 5, 2022 15:15
@gavv gavv merged commit 999e0c7 into master Dec 5, 2022
@gavv gavv deleted the feature/finalizers branch December 5, 2022 15:29
@gavv
Copy link
Member

gavv commented Dec 5, 2022

LGTM!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Think about some finalizer-like feature

4 participants