Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why not direct code in java #32

Closed
nhatminhle opened this issue Aug 17, 2014 · 3 comments
Closed

Why not direct code in java #32

nhatminhle opened this issue Aug 17, 2014 · 3 comments

Comments

@nhatminhle
Copy link
Owner

From saintof...@gmail.com on August 05, 2011 07:04:24

I agree contract for simple case.
But for some complicated case, why not annotation redirected a java static code?

Original issue: http://code.google.com/p/cofoja/issues/detail?id=30

@nhatminhle
Copy link
Owner Author

From leochat...@gmail.com on August 07, 2011 11:29:56

Hi,
sorry, I don't think I got your point. Can you explain this better?
Cheers

@nhatminhle
Copy link
Owner Author

From alexl...@gmail.com on August 13, 2011 09:16:20

I assume he means that contracts could be extracted to static method.

something like

@requires("mycontracts.Contracts.complicatedCheck(a)")

and then

in class mycontracts.Contracts

public static boolean complicatedCheck(String a) {
return ...
}

@nhatminhle
Copy link
Owner Author

From nhat.min...@gmail.com on August 16, 2014 03:28:59

Status: Invalid

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

No branches or pull requests

1 participant