Jacques Le Roux
ae8b2d89b0
Improved: Checkstyle: Variable name must match pattern (OFBIZ-11926)
...
Removes last remaining "Must have at least one statement" issues by using
Debug.logVerbose
Decreases tasks.checkstyleMain.maxErrors from 543 to 535
Thanks: Suraj for report
2020-09-16 10:30:37 +02:00
Jacques Le Roux
346c63bfdf
Improved: Checkstyle: Variable name must match pattern (OFBIZ-11926)
...
We have a lot of "do nothing" in Java code. In case of catch we should at least
have Debug.logError(e, MODULE); and maybe an explanation in the comment.
2020-09-15 15:24:45 +02:00
Jacques Le Roux
71e027d3a1
Documented: Error while decoding url parameters with percent character (OFBIZ-12014)
...
Just a comment to clarify
2020-09-14 11:53:02 +02:00
Jacques Le Roux
748e6c3452
Fixed: Error while decoding url parameters with percent character (OFBIZ-12014)
...
This has been already fixed (an clearly explained) in OFBIZ-10275 and broken
again in OFBIZ-11822
Thanks: Pradeep Choudhary
2020-09-14 11:18:28 +02:00
Suraj Khurana
02bb30ec61
Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk
2020-09-13 11:29:46 +05:30
Suraj Khurana
a5619831eb
Improved: Added missing Javadocs for remaining methods in framework component, this is required for all classes which looks like designed for extension (can be subclassed).
...
(OFBIZ-11947)
Thanks Jacques for review.
2020-09-13 11:28:00 +05:30
James Yong
b18dd6a9ce
Improved: Show border and file name for content rendered from ftl (OFBIZ-12002)
...
To reduce the need to view the page source from the browser.
Activated when print.verbose=true and widget.verbose=true.
Thanks: Jacques for review
2020-09-12 20:10:08 +08:00
Suraj Khurana
97b1688b0d
Improved: Make data members of class as private and added accessor methods for the same, also corrected occurences of the same in framework component.
...
(OFBIZ-11963)
Also made some related checkstyle code enhancements. Thanks Jacques for review.
2020-09-12 12:05:16 +05:30
Jacques Le Roux
a74eac0060
Fixed: Well-formed html in ftl template (OFBIZ-11996)
...
Fixes Java method names issues
Thanks: Girish
2020-09-10 12:31:22 +02:00
James Yong
161c0c0c05
Improved: Well-formed html in ftl template (OFBIZ-11996)
...
refactoring + add test case
2020-09-10 17:12:36 +08:00
James Yong
aab02b5142
Improved: Well-formed html in ftl template (OFBIZ-11996)
...
Add code to check closing tags and refactoring
2020-09-10 13:10:32 +08:00
Jacques Le Roux
2ee3984c8e
Improved: missed and ASL2 header
2020-09-04 11:57:15 +02:00
Suraj Khurana
bc5e945ded
Improved: Corrected line is longer than 150 characters checkstyle issues in framework component.
...
(OFBIZ-11921)
Also fixed some other extra space and naming related checkstyle issues observed.
Thanks Jacques for review.
2020-09-04 12:25:12 +05:30
Suraj Khurana
ca9fa4fba4
Improved: Corrected line is longer than 150 characters checkstyle issues in framework and applications component.
...
(OFBIZ-11921)
Also fixed some extra spaces and naming conventions related checkstyle issues.
Thanks Jacques for review.
2020-08-31 19:54:54 +05:30
James Yong
4a03567996
Improved: Allow logging to be disabled for getJs request (OFBIZ-11980)
...
Hide non-error logs related to getJs request as it doesn't provide meaningful data.
Thanks Jacques for initial review
2020-08-30 21:34:34 +08:00
Akash Jain
66a76ffd5a
Improved: Fix Literals comparisons with variable to avoid NPE (OFBIZ-11929)
...
Thanks, Devanshu Vyas for your contribution.
2020-08-30 17:20:23 +05:30
Suraj Khurana
f98f5ebb86
Improved: Added missing Javadocs for some methods, this is required for all classes which looks like designed for extension (can be subclassed).
...
(OFBIZ-11947)
Also fixed some other checkstyle issues that requires re-factoring.
Thanks Jacques for review.
2020-08-28 16:54:15 +05:30
Girish Vasmatkar
a79c6cc3a4
Implemented: Added a new IntegerToBigInteger converter(OFBIZ-11985)
2020-08-27 22:14:43 +05:30
Suraj Khurana
f357b997c0
Improved: Corrected class names, method names, data members of class and variables names in framework component.
...
(OFBIZ-11926)
Also corrected some formatting and line length related checkstyle issues.
2020-08-26 21:40:40 +05:30
Pawan Verma
6cb67c1a40
Improved: Replace .size() == 0 with isEmpty() in Java files(OFBIZ-11944)
...
Thanks, priya for the report and patch and jacques for the review.
2020-08-22 19:17:10 +05:30
Suraj Khurana
9689201b84
Improved: Make data members of class as private and added accessor methods for the same, also corrected occurences of the same in framework component.
...
(OFBIZ-11963)
Also made some related checkstyle code enhancements.
Thanks jacques for finalizing Javadoc pattern during this effort.
2020-08-22 13:20:39 +05:30
Suraj Khurana
8c10d4ae72
Improved: Added missing Javadocs for some methods, this is required for all classes which looks like designed for extension (can be subclassed).
...
(OFBIZ-11947)
This is done for framework component. Also corrected some variables as per naming convention best practices.
Thanks Jacques for review.
2020-08-17 12:30:26 +05:30
Jacques Le Roux
b895a9c889
Improved: Removed unused imports from Java files for fixing checkstyle errors (OFBIZ-11930)
...
Fixes few javadoc issues
Since this has been ignored for few commits I need to increase
tasks.checkstyleMain.maxErrors from 12224 to 12247 (did not check the detail)
2020-08-08 14:04:08 +02:00
Priya Sharma
5dbf5cb9eb
Improved: Removed unused imports from Java files for fixinf checkstyle errors
...
(OFBIZ-11930)
Thanks: Priya Sharma
2020-08-07 18:57:02 +05:30
Suraj Khurana
33f05c1684
Improved: Corrected all redundant modifiers occurences in framework component. Also, fixed some other checkstyle line formatting and spacing issues.
...
(OFBIZ-11925)
2020-08-06 18:53:13 +05:30
Jacques Le Roux
e8dd3c609c
Fixed: Server-Side Template Injection using Static (OFBIZ-11871)
...
Thanks to Alvaro's explanations, the problem was in MacroFormRenderer where, for
lookups, we retrieve _LAST_VIEW_NAME_ as a parameter without encoding it.
I have added getEncodedParameter method in UtilHttp and removed now useless
(after OFBIZ-11907) getEnvironment from MacroFormRenderer.java
Thanks: Alvaro for advice
2020-08-03 11:04:58 +02:00
Suraj Khurana
7d82b17c72
Improved: Corrected some line is longer than 150 characters checkstyle issues in framework component. Also fixed some extra spaces and naming conventions related checkstyle issues.
...
(OFBIZ-11921)
2020-08-03 10:11:40 +05:30
Jacques Le Roux
be498295a5
Improved: Update build.gradle to the latest dependencies (OFBIZ-11603)
...
Fixes some new warnings coming from JUnit 4.13, a step ahead to JUnit 5.
I left 2 complicated ExpectedException warnings. Change will be needed for JUnit 5.
https://www.luxoft-training.com/news/migrating-from-junit-4-to-junit-5-replacing-rules-with-the-extension-model-part-1/
2020-07-27 16:14:51 +02:00
Suraj Khurana
d374019465
Improved: Corrected all incorrect indentation level issues in framework component, also fixed some case indentation checkstyle issues.
...
(OFBIZ-11922)
2020-07-26 21:04:41 +05:30
Jacques Le Roux
9cbcef3209
Fixed: with "replaces module by MODULE everywhere" I put in a JavaDoc bug.
...
This fixes it and clarifies things by using className instead of module in code
when used as a var not as the MODULE const.
2020-07-26 10:30:45 +02:00
Suraj Khurana
f4f2722d36
Improved: Updated case indentation to 0 for all switch statements in framework component. Also done formatting changes as per checkstyle best practices.
...
(OFBIZ-11904)
2020-07-25 13:50:37 +05:30
Suraj Khurana
7b251e43d9
Improved: Corrected some single line statements to fix checkstyle issues, also removed some remaining extra spaces from code to avoid checkstyle erros in framework component.
...
(OFBIZ-11886)
2020-07-21 12:25:20 +05:30
Suraj Khurana
8b1e0dbd85
Improved: Corrected all checkstyle formatting issues: 'typecast' is not followed by whitespace in framework component.
...
(OFBIZ-11887)
2020-07-18 12:26:42 +05:30
holivier
b0f445b123
Documented: Framework, migration all docbook files to asciidoc
...
(OFBIZ-11587)
- common-sending-email: include in email
- datafile: move as a include at the end of entity-engine section
- entity-engine: list of link to OFBiz wiki about entity configuration
- service-engine: a link to OFBiz wiki Service Engine Guide
- webtools: help for main screen
- mini-lang: include a link to OFBiz wiki mini-lang-reference at the
beginning of minilang-to-groovy-manual
move minilang-to-groovy-manual to Development environment
section
- unit-test: include as Junit test, and use README to list gradle
command available (so add a tag in REAME.adoc)
- base: add a link to OFBiz wiki Configuration Guide, in deployment
section
- SingleSignOn with LDAP: move to plugin LDAP and include in deployment
section
developer-manual is updated with some include lines or with directly a
sentence.
2020-07-14 16:56:05 +02:00
holivier
2c700e86af
Documented: Framework/base migration to asciidoc
...
(OFBIZ-11587)
only one file about receiving email, so create email.adoc which included
receiving and later sending.
email.adoc is included in developer-manual.adoc in deployment section
2020-07-14 16:27:23 +02:00
Suraj Khurana
0c37e80036
Improved: Corrected all checkstyle formatting issues: Line has trailing spaces in framework component.
...
(OFBIZ-11880)
Thanks Jacques for review.
2020-07-13 14:18:24 +05:30
Suraj Khurana
dd4da77d76
Improved: Corrected checkstyle formatting issues, 'is preceded/not preceded with whitespace' for framework component.
...
(OFBIZ-11874)
This fixes following checkstyle issues:
'{' is not preceded with whitespace.
'{' is not followed by whitespace.
'}' is not followed by whitespace.
'}' is not preceded with whitespace.
'typecast' is not followed by whitespace.
'try' is not followed by whitespace.
';' is preceded with whitespace.
2020-07-11 14:33:47 +05:30
Suraj Khurana
3bb22302c7
Improved: Corrected all checkstyle issues related to succeeding space for comma in framework directory.
...
(OFBIZ-11805)
Thanks Jacques and Ritesh Kumar for review.
2020-07-09 12:07:29 +05:30
Suraj Khurana
fc6b8a6ca3
Improved: Corrected remaining ', is not followed by whitespace' checkstyle errors in framework component.
...
(OFBIZ-11805)
2020-07-07 15:08:17 +05:30
Suraj Khurana
4f53828bea
Improved: Corrected all 'if is not followed by whitespace' checkstyle errors. Also corrected few ', is not followed by whitespace' checkstyle errors in framework component.
...
(OFBIZ-11805)
Thanks Jacques Le Roux and Ritesh Kumar for review.
2020-07-06 15:29:58 +05:30
Pawan Verma
3da16a182c
Improved: Replace Collection.sort() with List.sort().(OFBIZ-11830)
2020-06-28 01:21:23 +05:30
Pawan Verma
e19b12eae9
Improved: Replace explicit type argument with diamond operator(OFBIZ-11828)
...
Since Java 1.7, when defining generic types it is unnecessary to redefine those types in the constructor when it is already done in the declared type.
2020-06-28 01:04:51 +05:30
Pawan Verma
4275825b4a
Improved: Replace anonymous types with lambda expressions(OFBIZ-11833)
2020-06-24 14:11:05 +05:30
Pawan Verma
2a4a617d0d
Improved: Replace try-finally with try with resources(OFBIZ-11826)
...
Set checkstyleMain.maxErrors to 26678 (-4)
Thanks: Jacques for the review.
2020-06-22 21:32:42 +05:30
Pawan Verma
18f5dadd93
Improved: Replace single method call lambda with method reference(OFBIZ-11835)
...
Thanks: Jacques for the review.
2020-06-22 20:59:44 +05:30
Jacques Le Roux
488b9b6b9a
Improved: Checks if the value passed to checkStringForHtmlSafe is not null (OFBIZ-11822)
...
This was reported by SpotBugs in Eclipse to prevent a possible NPE.
It seems to me that it's more complex than that because of the
PolicyFactory::sanitize methods signatures where @Nullable annotation is
used. So the SpotBugs warning remains, anyway can't hurt.
BTW found 92 issues reported by SpotBugs in Eclipse, among them 33 are "scary"
I had to add 1 to tasks.checkstyleMain.maxErrors because of
https://github.com/apache/ofbiz-framework/pull/203 that I pulled after the push
was rejected by the pre-push local Git hook
2020-06-16 14:05:16 +02:00
Jacques Le Roux
df828419be
Fixed: Double encoded urls are not being decoded (OFBIZ-11822)
...
This was broken by OFBIZ-10275
Thanks: Alex Bodnaru
2020-06-15 13:25:35 +02:00
Suraj Khurana
846e5f0ded
Improved: Enforce noninstantiability to GroovyUtil Class. ( #180 )
...
(OFBIZ-11778)
Made class as final, moved default constructor and renamed private data members as per naming convention best practices.
2020-06-06 10:03:33 +05:30
Suraj Khurana
abc7836dde
Improved: Made MODULE as private data member of class instead of public in all framework components.
...
(OFBIZ-11739)
This will reduce checkstlye issues. Thanks Jacques for review.
2020-05-29 13:20:46 +05:30
Pawan Verma
ba463ab9bc
Fixed: Issue with redirect queryParameters when the user is logged out
...
(OFBIZ-11714)
In OFBIZ-10539, We missed removing the line which was adding parameters into the map as Ritesh suggested a good way to handle parameters. I've removed that redundant line of code and attaching a patch for the same.
2020-05-19 17:21:11 +05:30